Skip to content

Instantly share code, notes, and snippets.

@neuronix
Created December 15, 2015 10:40
Show Gist options
  • Save neuronix/b49c8178b8162b948f29 to your computer and use it in GitHub Desktop.
Save neuronix/b49c8178b8162b948f29 to your computer and use it in GitHub Desktop.
Open Windows cmd with current folder location (context menu option)
; Adds a "Open CMD here" option to context menu (right click in a folder) than runs cmd with the current folder location
; Ex. in C:\Users\Peter\MyFolder, right click & select "Open cmd here" will open cmd with C:\Users\Peter\MyFolder>
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\Open CMD here]
@="Open &CMD here"
"Icon"="cmd.exe,0"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Open CMD here\command]
@="cmd.exe /s /k pushd \"%V\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment