IExtendable

Continuous Improvement with Chris McKenzie

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 “

July 22, 2010 - Posted by | Code, Personal

1 Comment »

  1. 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)

    Comment by FRANK CHEUNG | January 28, 2011 | Reply


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.