Automatic VS.NET Command Prompt

Note: this entry has moved.

Tired of going to the "Visual Studio .NET 2003 Command Prompt" program files shortcut and then having to move to the desired folder? Want to get the environment variables set whenever you run "cmd"?
Create a .reg file with the following code and merge it in your registry:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor]
"AutoRun"="\"C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Common7\\Tools\\vsvars32.bat\""
Needless to say, it must point to your installation path.

1 Comment

  • If you want the vs.net command prompt to be added to the windows explorer context menu, you just need to add the following:



    [HKEY_CLASSES_ROOT\Directory\shell\Visual Studio .NET 2003 Command Prompt]



    [HKEY_CLASSES_ROOT\Directory\shell\Visual Studio .NET 2003 Command Prompt\command]

    @="cmd.exe %1 /K \"C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Common7\\Tools\\vsvars32.bat\""

Comments have been disabled for this content.