-
Notifications
You must be signed in to change notification settings - Fork 7
/
CommandPrompt-here.reg
25 lines (23 loc) · 2.83 KB
/
CommandPrompt-here.reg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Windows Registry Editor Version 5.00
; WindowsContextMenuTools created by VincentBounce
;Command Prompt
[-HKEY_CLASSES_ROOT\Directory\shell\run200CommandPrompt]
[HKEY_CLASSES_ROOT\Directory\shell\run200CommandPrompt]
;"Extended"="" ;used to show command in context menu only if Shift pressed
"MUIVerb"="&Command Prompt" ;symbol '&' used for keyboard shortcut, applies on the letter next to
"subcommands"=""
"Icon"="%ComSpec%" ;cmd.exe alone works ;%SystemRoot%\\system32\\cmd.exe works
[HKEY_CLASSES_ROOT\Directory\shell\run200CommandPrompt\shell]
;HERE
[HKEY_CLASSES_ROOT\Directory\shell\run200CommandPrompt\shell\run00200]
@="Open &here"
"Icon"="%ComSpec%"
[HKEY_CLASSES_ROOT\Directory\shell\run200CommandPrompt\shell\run00200\command]
@="cmd.exe /K \"ver&title Command Prompt&cd /D \"%L\"\"" ;cmd.exe alone works because C:\WINDOWS\system32 in %PATH% ;%ComSpec% instead cmd.exe DOESN'T work here;
;HERE AS ADMIN
[HKEY_CLASSES_ROOT\Directory\shell\run200CommandPrompt\shell\runas]
@="Open here as &Administrator"
"Icon"="%ComSpec%"
"HasLUAShield"="" ;to print bottom-right admin shield icon
[HKEY_CLASSES_ROOT\Directory\shell\run200CommandPrompt\shell\runas\command] ;need to escape all \ and " with \\ and \" ;no need to escape `;` char
@="cmd.exe /T:0E /K \"ver&title Command Prompt&cd /D \"%L\"\"" ;another command found is cmd.exe /s /k pushd "%V"; /F:ON add an issue and removes the autocompletion instead adding it