-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathTOOL_PromptHereW10-CMD.reg
More file actions
46 lines (43 loc) · 5.44 KB
/
TOOL_PromptHereW10-CMD.reg
File metadata and controls
46 lines (43 loc) · 5.44 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Windows Registry Editor Version 5.00
;Command Prompt here | WindowsContextMenuTools created by VincentBounce
;from DIRECTORY | Windows Explorer folder icon | can use %1 or %L or %V
[-HKEY_CLASSES_ROOT\Directory\shell\run200CommandPrompt] ;removing previous version
[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
;from BACKGROUND | Windows Explorer right pane background folder | need to use %V
[-HKEY_CLASSES_ROOT\Directory\Background\shell\run200CommandPrompt] ;removing previous versions
[HKEY_CLASSES_ROOT\Directory\Background\shell\run200CommandPrompt]
"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\Background\shell\run200CommandPrompt\shell]
;HERE
[HKEY_CLASSES_ROOT\Directory\Background\shell\run200CommandPrompt\shell\run00200]
@="Open &here"
"Icon"="%ComSpec%"
[HKEY_CLASSES_ROOT\Directory\Background\shell\run200CommandPrompt\shell\run00200\command]
@="cmd.exe /K \"ver&title Command Prompt&cd /D \"%V\"\"" ;%V is the current directory path for background
;HERE AS ADMIN
[HKEY_CLASSES_ROOT\Directory\Background\shell\run200CommandPrompt\shell\runas]
@="Open here as &Administrator"
"Icon"="%ComSpec%"
"HasLUAShield"="" ;to print bottom-right admin shield icon
[HKEY_CLASSES_ROOT\Directory\Background\shell\run200CommandPrompt\shell\runas\command]
@="cmd.exe /T:0E /K \"ver&title Command Prompt&cd /D \"%V\"\"" ;%V used instead of %L