by Jim
Dec 12, 2006 4:16 PM
Windows Vista has added a quick menu item to open a command prompt for a folder. Right click on the folder while holding the shift key, and choose "Open command window here."
This has two problems: it doesn't work in the folder tree view, and it doesn't set .NET environment variables. My "Visual Studio command prompt here" broke when I upgraded to Vista; it started opening to the last used folder rather then the one that invoked the context menu.
The fix is to find the registry entry for this and change
cmd.exe %1 /K "C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\vsvars32.bat"
to
cmd.exe /D /K cd "%1" && "C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\vsvars32.bat"
No idea why the former no longer works in Vista...