1 2 3 4 5 6 |
Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOTDirectoryshellruncmd] "Run CMD on behalf of the administrator here" "Icon"="cmd.exe" [HKEY_CLASSES_ROOTDirectoryshellruncmdcommand] @="cmd.exe /s /k pushd "%V"" |
This will add the CMD run as administrator to the context menu of the folder. The folder will be used as the current command line directory. If the line does not appear in the menu, you need to either restart your computer, or restart Explorer (explorer.exe) in the task manager.