shift右键_cmd
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHere] @="在此处打开命令行窗口" "Extended"="" [HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHere\command] @="cmd.exe -noexit -command Set-Location -literalPath '%V'"
shift右键_cmd_管理员
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\Background\shell\runas] @="在此处打开命令行窗口(管理员)" "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] @="在此处打开命令行窗口(管理员)" "Extended"="" "HasLUAShield"="" [HKEY_CLASSES_ROOT\Drive\shell\runas\command] @="cmd.exe /s /k pushd \"%V\"" [HKEY_CLASSES_ROOT\LibraryFolder\background\shell\runas] "Extended"="" "HasLUAShield"="" @="在此处打开命令行窗口(管理员)" [HKEY_CLASSES_ROOT\LibraryFolder\background\shell\runas\command]
参考:https://blog.csdn.net/wyx0712/article/details/82120806