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_ROOTDirectoryBackgroundshellVS2010 Command Prompt]
@=”Open VS2010 Command Prompt Here”
“Extended”=””
“NoWorkingDirectory”=””
[HKEY_CLASSES_ROOTDirectoryBackgroundshellVS2010 Command Promptcommand]
@=”C:\Windows\System32\cmd.exe /s /k “pushd %V && “C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat”” x86 “
[HKEY_CLASSES_ROOTDirectoryshellVS2010 Command Prompt]
@=”Open VS2010 Command Prompt Here”
[HKEY_CLASSES_ROOTDirectoryshellVS2010 Command Promptcommand]
@=”C:\Windows\System32\cmd.exe /s /k “pushd %V && “C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat”” x86 “
[HKEY_CLASSES_ROOTDriveshellVS2010 Command Prompt]
@=”Open VS2010 Command Prompt Here”
“Extended”=””
“NoWorkingDirectory”=””
[HKEY_CLASSES_ROOTDriveshellVS2010 Command Promptcommand]
@=”C:\Windows\System32\cmd.exe /s /k “pushd %V && “C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat”” x86 “

One thought on “Open VS 2010 Command Prompt Here”

Leave a Reply