The fastest way to open cmd in current folder by shortcut (windows 8/10)?

5

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?

Mithril

Posted 2016-07-31T04:14:59.650

Reputation: 617

Answers

5

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.

Mithril

Posted 2016-07-31T04:14:59.650

Reputation: 617

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 – 2016-07-31T11:09:02.287

+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 – 2016-08-01T01:43:48.160

@PIMP_JUICE_IT Thanks for the tip. How to add the reference link to your answer? – Mithril – 2016-08-01T02:10:51.983

1This 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 – 2017-04-18T20:32:01.117

1now in Windows 10 there's only power shell in the menu – phuclv – 2018-07-04T07:17:54.773

5

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

Pimp Juice IT

Posted 2016-07-31T04:14:59.650

Reputation: 29 425

For me, the C in CMD already closes the current Explorer Window, whereas E would open CMD (and P opens Powershell) – Valentin Kuhn – 2016-07-31T11:00:15.573

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.

Lasse Meyer

Posted 2016-07-31T04:14:59.650

Reputation: 238

What's your system language? – Pimp Juice IT – 2016-08-01T02:00:56.887

German, E for 'Eingabeaufforderung', a horrible word for command prompt. – Lasse Meyer – 2016-08-01T07:50:45.433

after Alt+D I have to press c (for cmd) then down arrow and enter to open it – phuclv – 2018-07-04T07:15:46.100

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

Simon

Posted 2016-07-31T04:14:59.650

Reputation: 11

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"=""

w32sh

Posted 2016-07-31T04:14:59.650

Reputation: 8 611