Tag Archives: Tools

CopySourceAsHtml for Visual Studio 2010

CopySourceAsHtml is an add-in for Microsoft Visual Studio 2008 that allows you be able to quickly get your code as HTML from Visual Studio, just like being able to save it as a HTML file from the Save As dialog. It’s very helpful if you frequently post code to blog or send code in email.

I recently switched to Visual Studio 2010 and noticed this plug in is not ready for Visual Studio 2010 yet. Here is how you can get it work for Visual Studio before CopySourceAsHtml owner releases an official update to support Visual Studio 2010.

Continue reading

GhostDoc Tutorial

Earlier I have introduced this excellent comment auto generation tool – GhostDoc. Now you can follow this instructions to get GhostDoc working in just 5 minutes.

  1. Download GhostDoc and install
  2. GhostDoc is a Visual Studio plugin, so after Visual Studio is launched, you’d need to assign a hotkey for automatic comments generation, or just  click skip to use default hotkey Ctrl + Shift + D Continue reading

Final Visual Studio 2010 available for download

Visual Studio 2010, the best version of Visual Studio ever, is now available for download in Microsoft download center. The build number for RTM VS2010 and CLR4 is 4.0.30319.1.

Here is link for free trial

Visual Studio 2010 Professional

Visual Studio 2010 Ultimate

Training Resources

Visual Studio 2010 and .NET Framework 4 Training Kit

Visual Studio 2010 and .NET Framework 4 Training Course

Moving to Visual Studio 2010 e-Book

Continue reading

Span Remote Desktop Across Multiple Monitors

To span remote desktop across multiple monitors, launch an RDP connection using mstsc /span from the command prompt on your machine. This works on Vista/Windows 7. If you have a Win2K3 machine then you need have Terminal Services Client 6.0 installed. You can download it here.


If you use Remote Desktop Client 7.0 connect to Window 7 or Windows server 2008 R2 remote machine, you can simply check "Use all my monitors for the remote session" to do this.


Visual Studio plug-in: GhostDoc

Are your tired of documenting you code using C# /// XmlDoc syntax for each and every method?

It is time for you to meet SubMain’s GhostDoc. SubMain’s GhostDoc is a Visual Studio plug-in the was design just for you. It will parse your method/property/parameters names and will create a great documentation just for you with simple Ctrl+Shift+D.

Download it Free at: http://submain.com/products/ghostdoc.aspx. Continue reading

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 open a command line and run type following:

msiexec /a <YourPackageFullPath> TARGETDIR=<ExtractedMSIFullPath>

Replace <YourPackageFullPath> with full path of MSI file, <ExtractedMSIFullPath> with the target folder you want MSI files to be extracted to.

For example, to extract c:setup.msi, run following command:

msiexec /a c:setup.msi TARGETDIR=c:ExtractedMSI

The uncompressed setup.msi and all files along with fold structures will be extracted into  c:ExtractedMSI

Note: For Vista/Win7 with UAC turn on, the above command needs to be run from elevated command prompt.

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 UNC, all I need to do now to get latest system internals tools is just access \live.sysinternals.comtools. Great time saver! Continue reading

Snipping Tool in Vista/Win7

Now windows have snipping tool in Vista and Win7.

You can use Snipping Tool (normally you can find it at %SystemRoot%system32SnippingTool.exe) to capture a screen shot, or snip, of any object on your screen and then annotate, save, or share the image. Simply use a mouse or tablet pen to capture any of the following types of snips:

  • Free-form Snip.  Draw an irregular line, such as a circle or a triangle, around an object.
  • Rectangular Snip.  Draw a precise line by dragging the cursor around an object to form a rectangle.
  • Window Snip.  Select a window, such as a browser window or dialog box, that you want to capture.
  • Full-screen Snip.  Capture the entire screen when you select this type of snip.

After you capture a snip, it's automatically copied to the mark-up window, where you can annotate, save, or share the snip.

Symbolic Links

Vista and WIN7 now supports symbolic links, a feature that has been enjoyed in UNIX for a long time.

Creates a symbolic link. MKLINK [[/D] | [/H] | [/J]] Link Target /D      Creates a directory symbolic link.  Default is a file
symbolic link.
/H      Creates a hard link instead of a symbolic link.
/J      Creates a Directory Junction.
Link    specifies the new symbolic link name.
Target  specifies the path (relative or absolute) that the new link
refers to.

Continue reading