Open Visual Studio 2008 Command Prompt Here Context MenuI have put together some registry keys to add a Visual Studio 2008 Command Prompt context menu when a user &quot;shift + right-clicks&quot;.<br>Note: It is assumed that visual studio is installed in the default location on c:<br><br>          (for new registry users:  to install, <br>          1:  copy everything in bold and past into a new textpad file, <br>          2:  save the file as .reg  <br>          3:  Open the start menu and run regedit.exe<br>          4:  Open 'File' &gt; 'Import  <br>          5:  Find file location and click ok <br><br>          If the keys are added successfully you'll see a prompt saying so<br><br> <p><strong>Windows Registry Editor Version 5.00</strong></p> <p><strong>[HKEY_CLASSES_ROOT\Directory\Background\shell\VS2008 Command Prompt]<br>@=&quot;Open VS2008 Command Prompt Here&quot;<br>&quot;Extended&quot;=&quot;&quot;<br>&quot;NoWorkingDirectory&quot;=&quot;&quot;</strong></p> <p><strong>[HKEY_CLASSES_ROOT\Directory\Background\shell\VS2008 Command Prompt\command]<br>@=&quot;C:\\Windows\\System32\\cmd.exe /s /k \&quot;pushd %V &amp;&amp; \&quot;C:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\vcvarsall.bat\&quot;\&quot; x86 &quot;</strong></p> <p><strong>[HKEY_CLASSES_ROOT\Directory\shell\VS2008 Command Prompt]<br>@=&quot;Open VS2008 Command Prompt Here&quot;<br>&quot;Extended&quot;=&quot;&quot;<br>&quot;NoWorkingDirectory&quot;=&quot;&quot;</strong></p> <p><strong>[HKEY_CLASSES_ROOT\Directory\shell\VS2008 Command Prompt\command]<br>@=&quot;C:\\Windows\\System32\\cmd.exe /s /k \&quot;pushd %V &amp;&amp; \&quot;C:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\vcvarsall.bat\&quot;\&quot; x86 &quot;</strong></p> <p><strong>[HKEY_CLASSES_ROOT\Drive\shell\VS2008 Command Prompt]<br>@=&quot;Open VS2008 Command Prompt Here&quot;<br>&quot;Extended&quot;=&quot;&quot;<br>&quot;NoWorkingDirectory&quot;=&quot;&quot;</strong></p> <p><strong>[HKEY_CLASSES_ROOT\Drive\shell\VS2008 Command Prompt\command]<br>@=&quot;C:\\Windows\\System32\\cmd.exe /s /k \&quot;pushd %V &amp;&amp; \&quot;C:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\vcvarsall.bat\&quot;\&quot; x86 &quot;</strong></p><br><br>© 2009 Microsoft Corporation. All rights reserved.Wed, 26 Nov 2008 11:24:16 Z79b2c794-b85f-4fc7-ba79-2011579a7a69http://social.msdn.microsoft.com/Forums/en-US/vsx/thread/79b2c794-b85f-4fc7-ba79-2011579a7a69#79b2c794-b85f-4fc7-ba79-2011579a7a69http://social.msdn.microsoft.com/Forums/en-US/vsx/thread/79b2c794-b85f-4fc7-ba79-2011579a7a69#79b2c794-b85f-4fc7-ba79-2011579a7a69devsuldierhttp://social.msdn.microsoft.com/Profile/en-US/?user=devsuldierOpen Visual Studio 2008 Command Prompt Here Context MenuI have put together some registry keys to add a Visual Studio 2008 Command Prompt context menu when a user &quot;shift + right-clicks&quot;.<br>Note: It is assumed that visual studio is installed in the default location on c:<br><br>          (for new registry users:  to install, <br>          1:  copy everything in bold and past into a new textpad file, <br>          2:  save the file as .reg  <br>          3:  Open the start menu and run regedit.exe<br>          4:  Open 'File' &gt; 'Import  <br>          5:  Find file location and click ok <br><br>          If the keys are added successfully you'll see a prompt saying so<br><br> <p><strong>Windows Registry Editor Version 5.00</strong></p> <p><strong>[HKEY_CLASSES_ROOT\Directory\Background\shell\VS2008 Command Prompt]<br>@=&quot;Open VS2008 Command Prompt Here&quot;<br>&quot;Extended&quot;=&quot;&quot;<br>&quot;NoWorkingDirectory&quot;=&quot;&quot;</strong></p> <p><strong>[HKEY_CLASSES_ROOT\Directory\Background\shell\VS2008 Command Prompt\command]<br>@=&quot;C:\\Windows\\System32\\cmd.exe /s /k \&quot;pushd %V &amp;&amp; \&quot;C:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\vcvarsall.bat\&quot;\&quot; x86 &quot;</strong></p> <p><strong>[HKEY_CLASSES_ROOT\Directory\shell\VS2008 Command Prompt]<br>@=&quot;Open VS2008 Command Prompt Here&quot;<br>&quot;Extended&quot;=&quot;&quot;<br>&quot;NoWorkingDirectory&quot;=&quot;&quot;</strong></p> <p><strong>[HKEY_CLASSES_ROOT\Directory\shell\VS2008 Command Prompt\command]<br>@=&quot;C:\\Windows\\System32\\cmd.exe /s /k \&quot;pushd %V &amp;&amp; \&quot;C:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\vcvarsall.bat\&quot;\&quot; x86 &quot;</strong></p> <p><strong>[HKEY_CLASSES_ROOT\Drive\shell\VS2008 Command Prompt]<br>@=&quot;Open VS2008 Command Prompt Here&quot;<br>&quot;Extended&quot;=&quot;&quot;<br>&quot;NoWorkingDirectory&quot;=&quot;&quot;</strong></p> <p><strong>[HKEY_CLASSES_ROOT\Drive\shell\VS2008 Command Prompt\command]<br>@=&quot;C:\\Windows\\System32\\cmd.exe /s /k \&quot;pushd %V &amp;&amp; \&quot;C:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\vcvarsall.bat\&quot;\&quot; x86 &quot;</strong></p><br><br>Wed, 03 Sep 2008 19:05:35 Z2008-09-13T02:21:12Zhttp://social.msdn.microsoft.com/Forums/en-US/vsx/thread/79b2c794-b85f-4fc7-ba79-2011579a7a69#e00f1d86-c116-421f-ad6e-082d1a8d03d1http://social.msdn.microsoft.com/Forums/en-US/vsx/thread/79b2c794-b85f-4fc7-ba79-2011579a7a69#e00f1d86-c116-421f-ad6e-082d1a8d03d1Erik Burgerhttp://social.msdn.microsoft.com/Profile/en-US/?user=Erik%20BurgerOpen Visual Studio 2008 Command Prompt Here Context Menu Hi devsuldier,<br><br>Thanks for this! I noticed an error with the <strong>pushd %V</strong> command that caused it to not work on my Windows XP SP2 machine so I went ahead and modified your script a little bit (basically replacing <strong>pushd %V</strong> with <strong>cd \&quot;%1\&quot;</strong>. <br><br>I added a batch file to automatically add the entries to the registry on startup (my current employer resets the registry at reboot :S). You can find more information on my blog (<a href="http://www.reversealchemy.net/2008/11/26/adding-the-visual-studio-2008-command-prompt-to-your-explorer-context-menu//">here</a>).<br><br>Cheers,<br>ErikWed, 26 Nov 2008 11:24:08 Z2008-11-26T11:24:08Z