Author: devonenote

  • C# reading from and write to text file

    CSharp sample for reading from a text file and writing to a text file. //Reading from a text file       System.IO.StreamReader srFile = new System.IO.StreamReader(@"c:foo.txt"); string str = srFile.ReadToEnd(); srFile.Close();   //Writing to a text file string lines = "foobar"; System.IO.StreamWriter swFile = new System.IO.StreamWriter(@"c:bar.txt"); swFile.WriteLine(lines); swFile.Close();

  • Change Theme in Outlook 2010

    To change theme in Outlook 2010 Open outlook, click Files, then Options On the General tab, select a different theme in Color scheme drop down.

  • Some shortcuts no longer work in Outlook 2010

    It turns out Alter Shortcuts, e.g Alt+R (Reply), Alt+L (Reply All), and Alt+W (Forward), no longer work in Outlook 2010 BETA at all, though they worked in Outlook 2007 and previous Office 2010 CTP version. Actually, these shortcuts are not lost, they just change Alt to Ctrl for some reason. Users have to use Ctrl+R…

  • OneNote: Unread Highlighting cannot be cleared

    I recently upgraded to Office 2010 BETA and I notice an annoy bug in OneNote 2010. There is a feature in OneNote 2010 which will highlight unread content after notes are synced between two PCs. However, it can’t detect whether those content is read or not so the green highlighting will stay there forever. The…

  • Uncompress MSI File

    Sometimes I need to unzip MSI file to view its content without actual installing it. I used to use a 3rd party tool named 7zip to extract MSI. Today I discover there is much easier way to do this with windows build in tool msiexec.exe The use msiexec to uncompress MSI file, you need to…

  • Batch Script Tips

    Getting the current working directory cd /d %~dp0 Comment: %0 is the name of the batch file. ~dp gives you the drive and path.

  • SysInternals tools now accessible over UNC

    Two tools that I use frequently when troubleshot issues on servers are Process Explorer and Process Monitor. Since these are not windows built in tools (though they owned by Microsoft), I always have to go to Sysinternals site and download them one by one. I just notice that SysInternals tools are accessible over a public…

  • Large email sizes in Outlook 2010 BETA

    In Outlook 2010 BETA, an email in the default HTML format might take much more space than the other formats. Sometimes, a simple msg takes upward .5 MB to 1 MB or even bigger after a few replies. Microsoft has released a fix for this, which is available at microsoft download center: Download Outlook 2010…

  • Install Windows Live Messenger on 64bit Windows XP and Server 2003

    Windows Live Messenger cannot be installed on Windows Server 2003 and Windows XP Professional x64 Edition. It seems that these OS are blocked in Windows Live Messenger setup. Eventually I found this blog Install Windows Live Messenger 2009 from .msi files. The instruction on this page works well on windows server 2003. It also works…

  • Where is OOF Assistance, Print, Save and my other tools in Outlook 2010

    Q: Where is OOF Assistance, Print, Save in Outlook 2010? A: Click on the ‘File’ button (upper left hand side) to access all the tools you have found in various menu items.