3

I used to Shift + mouse right click to open cmd in current folder. It is the fastest way I think, there are some relate solution in superuser:

In how-can-i-open-a-command-prompt-in-current-folder-with-a-keyboard-shortcut

  1. Shift + Menu(or Shift + F10), W, Enter

    need enter 4 key, and type 3 time.(I think it worked on all windows(at least from 7 to 10 I have tested)

  2. The AHK way. You just need to press Win + C (please see detail in above question), but you need install ANK, paste script and set it in windows startup.

Is there any easier and faster way to do such thing in Windows 10?

3

Easy way with 3 keys, no extra settings needed:

Alt + D, E


Pressing Alt + D will open up the menu in Windows Explorer with mnemonics enabled and shown.

Then just press the mnemonic key for CMD, which will open it immediately. In my case it's E, but it might be different for you, depenending on your system language.

  • What's your system language? – Pimp Juice IT Aug 1 '16 at 2:00
  • German, E for 'Eingabeaufforderung', a horrible word for command prompt. – Lasse Meyer Aug 1 '16 at 7:50
  • after Alt+D I have to press c (for cmd) then down arrow and enter to open it – phuclv Jul 4 '18 at 7:15
2

Another Default All Keyboard Method

Once in the current folder with Windows Explorer, press ALT+D, type in CMD and press Enter


CAUTION: Issues with ALT + F + P (and other methods)

The This PC, Quick Access, and other special views in File Explorer is the real issue

  1. It seems if you open Windows Explorer\File Explorer and by default it opens This PC then the Open command prompt option is grayed out and actually pressing the P key at this point does nothing if this is the case. This seems to be an issue for other File Explorer special views as well such as Quick Access.

    enter image description here

  2. When pressing ALT+D, typing in CMD and pressed Enter when on This PC (and Quick Access) via File Explorer, it opens up the command prompt in the C:\WINDOWS\system32 directory.

    enter image description here

  • For me, the C in CMD already closes the current Explorer Window, whereas E would open CMD (and P opens Powershell) – Valentin Kuhn Jul 31 '16 at 11:00
2

There only need three key in windows 8/10:

Alt + F, P

Just three key and type twice , without help of another program.


For somenoe feedback that shortcut not work:

I would show you how to find the correct key here

note: my system lang is Chinese, but layout is same, you wouldn't miss it.

  1. You need open a folder

    Note:Open command prompt option may be grayed out at some place, thanks for @PIMP_JUICE_IT's answer, click to see detail..

    You need enter a real folder, special folder such as Favorite would not work, because it doesn't have a real path, I have a try and find:

    green folder is not real folder(shortcut not work), but folder in red zone is Ok

    enter image description here

  2. press and hold Alt, you would see the hotkey of File Button(top left window)

    enter image description here

    It is F in my system. F maybe different in you system, just replace it.

  3. Hold Alt + F(replace F with Your system File key) , you would see the hotkey mark too.

    enter image description here

    P is cmd shortcut here(replace P with the Your system cmd key you see)

Then just do:

Alt + Your system File key, Your system cmd key



PS: If still not work, please check you shortcut binding, there must be some program take the control.

  • Are you sure this is working by default? It's not working for me. Alt+F does nothing, so if I press P it just searches for P. – Lasse Meyer Jul 31 '16 at 11:09
  • +1 from me, your solution works just fine. . . look over my answer below and the section I added labeled: CAUTION: Issues with ALT + F + P (and other methods) --this may explain what people are experiencing. – Pimp Juice IT Aug 1 '16 at 1:43
  • @PIMP_JUICE_IT Thanks for the tip. How to add the reference link to your answer? – Mithril Aug 1 '16 at 2:10
  • 1
    This was working for me, but with the Windows 10 ugrade to Version 1703, the 'Open Command Prompt' entry in the file menu is now gone. – Mark Arnott Apr 18 '17 at 20:32
  • now in Windows 10 there's only power shell in the menu – phuclv Jul 4 '18 at 7:17
1

The fastest way to open a cmd in a specific Windows folder location is: typing cmd into the folder URL and press Enter.

Here is a screenprint to further illustrate it:

enter image description here

0

If you can slightly tweak the "Open command window here" verb, you can save 2 keystrokes. Assumes no files are currently selected in the folder.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\directory\Background\Shell\cmd]
@="Open co&mmand window here"
"Extended"=-

This REG fix does 2 things:

  1. Removes the string value named Extended so that you don't have to use SHIFT key access the command.

  2. Changes the accelerator to letter m instead of w. As no other menu items use m, pressing Menu key + m launches Command Prompt window, without having to press ENTER. (This works at least in English language versions of Windows.)

If you change your mind and want to revert back the settings to defaults, use this REG file.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\directory\Background\Shell\cmd]
@="@shell32.dll,-8506"
"Extended"=""

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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