Created
November 14, 2016 13:49
-
-
Save Prince-Mandor/c1db742bd2951989db84acfbc7b9562f to your computer and use it in GitHub Desktop.
add elevated command prompt to shift-right click menu in windows
This file contains hidden or 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\*\shell\runas] | |
[HKEY_CLASSES_ROOT\*\shell\runas] | |
@="Command prompt here (as Admin)" | |
"Extended"="" | |
"HasLUAShield"="" | |
[HKEY_CLASSES_ROOT\*\shell\runas\command] | |
@="cmd.exe /s /k for %%X in (\"%V\") do @pushd %%~dpX" | |
[-HKEY_CLASSES_ROOT\Directory\shell\runas] | |
[HKEY_CLASSES_ROOT\Directory\shell\runas] | |
@="Command prompt here (as Admin)" | |
"Extended"="" | |
"HasLUAShield"="" | |
[HKEY_CLASSES_ROOT\Directory\shell\runas\command] | |
@="cmd.exe /s /k pushd \"%V\"" | |
[-HKEY_CLASSES_ROOT\Directory\Background\shell\runas] | |
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas] | |
@="Command prompt here (as Admin)" | |
"Extended"="" | |
"HasLUAShield"="" | |
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command] | |
@="cmd.exe /s /k pushd \"%V\"" | |
[-HKEY_CLASSES_ROOT\Drive\shell\runas] | |
[HKEY_CLASSES_ROOT\Drive\shell\runas] | |
@="Command prompt here (as Admin)" | |
"Extended"="" | |
"HasLUAShield"="" | |
[HKEY_CLASSES_ROOT\Drive\shell\runas\command] | |
@="cmd.exe /s /k pushd \"%V\"" | |
[-HKEY_CLASSES_ROOT\LibraryFolder\background\shell\runas] | |
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\runas] | |
"Extended"="" | |
"HasLUAShield"="" | |
@="Command prompt here (as Admin)" | |
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\runas\command] | |
@="cmd.exe /s /k pushd \"%V\"" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just to remember what's this
%V
means: