0

From Windows Explorer I want to launch a command-prompt window with the working directory the current folder in Explorer.

So far I:

  • copy the path from the explorer navigation bar
  • Windows+R: cmd to launch a cmd prompt
  • cd /d CTRL+V

But there must be a way to improve on this somewhat? Preferably without installing any extensions.

I'm running a pretty standard Windows 10 setup, slightly different versions across different machines so something that is standard would be best.

Mr. Boy
  • 5,056
  • 26
  • 65
  • 103
  • Does this answer your question? [Way to open a folder from Windows Explorer in cmd.exe under Windows 10 with one shortcut?](https://superuser.com/questions/1519562/way-to-open-a-folder-from-windows-explorer-in-cmd-exe-under-windows-10-with-one) – Io-oI Feb 12 '20 at 16:12
  • 1
    Mr. Boy, when in the Windows Explorer folder, go to the address bar, type CMD, press enter, and bam.... cmd open from that folder location.... Note this doesn't work for UND paths though, just drive letter mapped folders. – Vomit IT - Chunky Mess Style Feb 12 '20 at 16:40
  • @PimpJuiceIT that's awesome and not the asnwer others seem to be sharing... nice – Mr. Boy Feb 12 '20 at 17:11
  • 1
    Does this answer your question? [The fastest way to open cmd in current folder by shortcut (windows 8/10)?](https://superuser.com/questions/1106976/the-fastest-way-to-open-cmd-in-current-folder-by-shortcut-windows-8-10) – Moab Feb 12 '20 at 17:36
  • you can just write `cmd` in your navigation bar and cmd will open in the current folder – SimonS Feb 13 '20 at 15:16

2 Answers2

1

You can hold down the SHIFT key and right click in blank space in the folder. There will be an option for "Open CMD Window Here." enter image description here

Narzard
  • 3,557
  • 14
  • 27
0

It seems to me a duplicate question, where several options are answered.

Anyway, take a look at this simple option...



  • So, save this code as file./, and run or click (need admin rights).
Windows Registry Editor Version 5.00;Command Prompt Here[HKEY_CLASSES_ROOT\Directory\shell\runas]@="Command Prompt Here"[HKEY_CLASSES_ROOT\Directory\shell\runas\command]@="cmd.exe /s /k pushd \"%V\""
cls & echo/ & "%__APPDIR__%reg.exe" import "%~f0" & "%__APPDIR__%timeout" -1 

  • This is the reg part of hybrid with / file:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Command Prompt Here"

[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""

  • You get this menu context: Command Prompt Here

  • You don't need additional startup script or holding Shift and Right-Click.

Io-oI
  • 7,588
  • 3
  • 12
  • 41