Skip to content

Instantly share code, notes, and snippets.

@b9AcE b9AcE/CMD_here.reg
Last active Jul 7, 2019

Embed
What would you like to do?
Adds cmd-prompt at right-clicked object in Windows Explorer.
Windows Registry Editor Version 5.00
; Always show CMD-prompt in all locations for explorer and rename
; it to just "CMD..." for menu brevity
; (the latter can be restored to "@shell32.dll,-8506" if desired).
; The first step is to remove the empty string "Extrended" which on some
; versions of Windows exists and will otherwise restrict the menu entry
; to being shown when shift is simultaneously pressed.
; Windows 10 requires changing permissions of the registry keys before use.
; Extremely simple, but since all versions I had encountered were
; lacking in functionality or clarity, I wrote my own.
; Version 20190707 by b9AcE.
; Right-clicking on drive-icons in explorer.
[HKEY_CLASSES_ROOT\Drive\shell\cmd]
@="&CMD..."
"Extended"=-
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Drive\shell\cmd\command]
@="\"C:\\Windows\\System32\\cmd.exe\" /s /k pushd \"%V\""
; Rightclicking on drirectory-icons in explorer.
[HKEY_CLASSES_ROOT\Directory\shell\cmd]
@="&CMD..."
"Extended"=-
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Directory\shell\cmd\command]
@="\"C:\\Windows\\System32\\cmd.exe\" /s /k pushd \"%V\""
; Right-clicking on drive-backgrouns in explorer.
[HKEY_CLASSES_ROOT\Drive\Background\Shell\cmd]
@="&CMD..."
"Extended"=-
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Drive\Background\Shell\cmd\command]
@="\"C:\\Windows\\System32\\cmd.exe\" /s /k pushd \"%V\""
; Right-clicking on a directory bacground in explorer.
[HKEY_CLASSES_ROOT\Directory\Background\shell\cmd]
@="&CMD..."
"Extended"=-
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Directory\Background\shell\cmd\command]
@="\"C:\\Windows\\System32\\cmd.exe\" /s /k pushd \"%V\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.