Created
May 16, 2017 02:38
-
-
Save jbsulli/be2630b4e2d85987e0d77b3c457c1bc5 to your computer and use it in GitHub Desktop.
Add "Open with CMD" option to the Windows 10 context menu (both when right-clicking on a folder and in a folder).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenWithCMD] | |
@="Open with CMD" | |
"Icon"="C:\\WINDOWS\\system32\\cmd.exe" | |
[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenWithCMD\command] | |
@="cmd.exe /k cd %V" | |
[HKEY_CLASSES_ROOT\Directory\shell\OpenWithCMD] | |
@="Open with CMD" | |
"Icon"="C:\\WINDOWS\\system32\\cmd.exe" | |
[HKEY_CLASSES_ROOT\Directory\shell\OpenWithCMD\Command] | |
@="cmd.exe /k cd %1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For the
"Icon"
value I suggest you don't hard code the possibility variable path / drive likeC:\
orD:\
%SystemRoot%\System32\cmd.exe
is more flexible although even that is unnecessary.%ComSpec%
alone is enough.Also adding "open with cmd" to any file seems unreasonably dangerous... "open cmd here" feels more reasonable