[Customization] How to add cmdline into contextual mouse menu?
I] With only logged user rights
1) with regfile:
|
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\Command Prompt] [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\Command Prompt\command] |
2) with command line:
| REG ADD "HKLM\SOFTWARE\Classes\Folder\shell\Command Prompt" /VE /D "cmdline here" REG ADD "HKLM\SOFTWARE\Classes\Folder\shell\Command Prompt\command" /VE /D "Cmd.exe /k pushd %L" |
II] With admin rights:
1) with regfile:
|
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Folder\shell\runas] [HKEY_CLASSES_ROOT\Folder\shell\runas\command] [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\runas] [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\runas\command] |
2) with command line:
| REG ADD "HKCR\Folder\shell\runas" /VE /D "cmdline here (Admin)" /F REG ADD "HKCR\Folder\shell\runas\command" /VE /D "cmd.exe /s /k pushd \"%V\"" /F REG ADD "HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\runas" /VE /D "Open Command Prompt (Admin)" /F REG ADD "HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\runas\command" /VE /D "cmd.exe" /F |
## and to go further, a context menu editor
to download here (from thewindowsclub.com)
Enjoy!
/image%2F0881799%2F20140610%2Fob_a8c7fe_logo2.jpg)
Commenter cet article