Command Prompt Entry in a Folder's Shortcut Menu


It’s handy to have an entry in the Windows Explorer context menu which will enable you to open a Command Window and automatically navigate to that folder. Here's how to create a Command Prompt entry on the context menus for both folders and drives. Similarly, this procedure will also add a VS Command Prompt entry (not shown in the screen shot below).




%comspec% /k ""C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat"" x86
cmd.exe /k cd /d "%1"

Windows Registry Editor Version 5.00

@="Command &Prompt"

@="cmd.exe /k \"cd /d %L\""

@="Command &Prompt"

@="cmd.exe /k \"cd /d %L\""

@="&VS Command Prompt"

@="C:\\Data\\vscmd.bat \"%1\""

Windows 7