Projects Log

projects, diy

Search:

« PreviousNext »

How to add an "Open Command Window Here" shortcut in the context menu under Windows 2003

30 July 2006

Microsoft has has released a little powertoy called "Open Command Window Here" unfortunatly you can't install under Windows 2003…
oh and by the way, this works under windows XP too (2000 not tested)

This could be pretty useful since we have a lot of win2k3 servers at work…

  • Open regedit (Windows Key + R > regedit > enter)
  • goto HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell
  • Create a new registry key and give it a name (i called mine "cmd.exe here")
  • Set the default value the way you want it to appear in the context menu (">> cmd here < < for example)
  • Create a new registry key in the previous one named "command" (you can't change this name)
  • Set the default value to "cmd.exe /k pushd %L"
  • You're done!

    If you're lazy, you can download the following .reg and simply apply it. (REGEDIT4, because Windows Registry Editor Version 5.00 reg files are not ascii only)

    REGEDIT4

    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\cmd.exe here]
    @=">> cmd here <<"

    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\cmd.exe here\command]
    @="cmd.exe /k pushd %L"

    Download this code: cmdhere.reg

    Archived in Windows, easy, hack, win32 | Trackback | del.icio.us | Top Of Page

    One Response to “How to add an "Open Command Window Here" shortcut in the context menu under Windows 2003”

    1. Michael A. Reeds, Ph.D. Says:

      Thank you! This works just fine in Vista Beta 2. So now on to all of your other nice hacks.

      Mike