Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to bring up a Windows console (for the current directory) from the Windows Explorer context menu? I really like this feature in Nautilus (on Linux) and I'm wondering if there is a parallel feature in Windows.

Edit: I'm specifically interested in Windows 7 and Windows XP.

share|improve this question
What version of windows? – A Dwarf Oct 31 '09 at 19:18
up vote 11 down vote accepted

You can use power toys 'Open Command Window Here' for Windows XP to open a command window pointing directly at the selected folder.


I'm not a Windows 7 user (yet) but apparently if you press the 'Shift' key and right-click on any folder, you get some extra options like "Open Command Window Here".

See here for more info on this, it demonstrates how to enable this feature without pressing shift using some registry tweaks.

share|improve this answer
Excellent! Do you know if there is a similar tool for Windows 7? – Joseph Sturtevant Oct 31 '09 at 19:22
Already there in Win7 with shift-right-click. – harrymc Oct 31 '09 at 19:30
Has been that way since Vista, even. – Joey Oct 31 '09 at 21:19
The link in this answer appears to be broken now. :/ – Anderson Green Sep 13 '13 at 19:29

The following text, when entered into a .reg file and launched, will do it:

Windows Registry Editor Version 5.00
@="Open Command Window Here"
@="cmd.exe /k pushd %L"

share|improve this answer
+1 for sniping me – squillman Oct 31 '09 at 19:35

You can do this in the registry (normal "editing the registry" warnings apply)

  1. Create a new key under HKLM\Software\Classes\Folder\Shell, name it Command Prompt. Set the default string value to whatever you want to see in the context menu when you right-click on a folder
  2. Create a new key under the one you created in step 1 and call it command
  3. Set the default value of the key you created in step 2 to this:
    %SystemRoot%\system32\cmd.exe /k pushd %1

Now when you right-click a folder you'll have an item that says Command Prompt that will open a cmd prompt window to that folder. You can use any valid reg string for the key name in step 1.

share|improve this answer
+1 returning the compliment. – harrymc Oct 31 '09 at 19:49
how can you make this context show also when you are inside a folder? – Brian Boatright Mar 21 '10 at 17:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .