JSI Tip 7536. How do I cause Windows Server 2003 Explorer to open a command prompt at the folder I right-click?

To add a Command Prompt menu item to a folder's right-click context menu:

1. Copy / Paste the following to a CMD.reg file:

Windows Registry Editor Version 5.00

\[HKEY_CLASSES_ROOT\Directory\shell\cmd\]
@="Command Prompt"

\[HKEY_CLASSES_ROOT\Directory\shell\cmd\command\]
@="cmd.exe /k pushd \"%L\""


2. Merge the CMD.reg file with your registry, or run regedit /s CMD.reg.

3. Right-click a folder in Explorer, or My Computer, and press Command Prompt.



Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish