Sunday, July 30, 2006

Adding A .Net Command Prompt to Explorer context menu

In order to get access to ildasm or the csc (C# compiler) you need to run vsvars32.bat. It would be easier to point to a folder in explorer and right click and see a ".Net Cmd 2003" item and just select it. You can then access all the .Net tools for this version of the framework.

I have a reg file I use to set this up. You can create a reg file with this content and double click on it or set the registry key by hand.

There is a 2003 and 2005 version (both can work at the same time)


---- 2003 / Version Begin Of Reg File
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Folder\shell\.NET Cmd 2003\command]
@="cmd.exe /K  \"C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Common7\\Tools\\vsvars32.bat\""

-- End Of RegFile


---- 2005 / Version Begin Of Reg File
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Folder\shell\.NET Cmd 2005 Beta 2\command]
@="cmd.exe /K  \"C:\\Program Files\\Microsoft Visual Studio 8\\Common7\\Tools\\vsvars32.bat\""

-- End Of RegFile


See the all-new, redesigned Yahoo.com. Check it out.

No comments: