vote up 0 vote down star
1

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.

flag

75% accept rate
What version of windows? – A Dwarf Oct 31 at 19:18

3 Answers

vote up 5 vote down check

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

EDIT

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.

link|flag
Excellent! Do you know if there is a similar tool for Windows 7? – Joseph Sturtevant Oct 31 at 19:22
3  
Already there in Win7 with shift-right-click. – harrymc Oct 31 at 19:30
Has been that way since Vista, even. – Johannes Rössel Oct 31 at 21:19
vote up 2 vote down

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

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\CommandPrompt]
@="Open Command Window Here"
[HKEY_CLASSES_ROOT\Directory\shell\CommandPrompt\command]
@="cmd.exe /k pushd %L"

link|flag
+1 for sniping me – squillman Oct 31 at 19:35
vote up 2 vote down

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.

link|flag
+1 returning the compliment. – harrymc Oct 31 at 19:49

Your Answer

Get an OpenID
or
never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.