Open VS 2010 Command Prompt Here
I wanted to add an “Open VS 2010 Command Prompt Here” option to the context menu in windows explorer. To do this, create a text file with a .reg extension, paste in the text below, save the file, then double-click it to run it against your registry.
This example was adapted from here.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\VS2010 Command Prompt]
@=”Open VS2010 Command Prompt Here”
“Extended”=”"
“NoWorkingDirectory”=”"
[HKEY_CLASSES_ROOT\Directory\Background\shell\VS2010 Command Prompt\command]
@=”C:\\Windows\\System32\\cmd.exe /s /k \”pushd %V && \”C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\vcvarsall.bat\”\” x86 “
[HKEY_CLASSES_ROOT\Directory\shell\VS2010 Command Prompt]
@=”Open VS2010 Command Prompt Here”
[HKEY_CLASSES_ROOT\Directory\shell\VS2010 Command Prompt\command]
@=”C:\\Windows\\System32\\cmd.exe /s /k \”pushd %V && \”C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\vcvarsall.bat\”\” x86 “
[HKEY_CLASSES_ROOT\Drive\shell\VS2010 Command Prompt]
@=”Open VS2010 Command Prompt Here”
“Extended”=”"
“NoWorkingDirectory”=”"
[HKEY_CLASSES_ROOT\Drive\shell\VS2010 Command Prompt\command]
@=”C:\\Windows\\System32\\cmd.exe /s /k \”pushd %V && \”C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\vcvarsall.bat\”\” x86 “
didn’t work for me for some reason – used the INF file here instead:
http://www.paraesthesia.com/archive/2007/11/20/command-prompt-here-round-up.aspx
(had to add x86 to program files in the INF)