codebrothers.net :: Home  >  Matthias Denkmaier
User: Guest  Login
Matthias Denkmaier
C# - what else?
Blog search:  
How to create Open here explorer context menu entry

As an developer you often have quickly execute some batch files or console programs from within specific folders. Therefore it is a real pain if you always have to open a command prompt by hand and navigate to the desired folder first before you can execute the program or script.

Copy the following lines to a new text file and name it OpenCommandPromptHere.reg. The extension .reg is important, otherwise you are not able to install the shell extension.

 

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\vscmd]
@="Open VS.NET Command Window Here"
[HKEY_CLASSES_ROOT\Directory\shell\vscmd\command]
@="cmd.exe /k cd %1 && \"C:\\Programme\\Microsoft Visual Studio 8\\Common7\\Tools\\vsvars32.bat\" "

 

After installing the explorer menu extension you can right-click on any folder in your Windows Explorer and open an command prompt just right with the correct path set.

Share this post: Email it!
Posted:  14.12.2006 00:49:50  by  mdenkmaier
Tags:  How toDevelopment
Comments are not allowed on this item!