创建文本文件并重命名为OpenCMDHere.reg,输入以下内容保存后双击执行即可:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\OpenCMD]
@="在此打开命令行"
"Icon"="cmd.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\OpenCMD\command]
@="cmd.exe /s /k pushd \"%V\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\ShieldCMD]
@="以管理员身份打开命令行窗口"
"HasLUAShield"=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\ShieldCMD\command]
@="cmd.exe /s /k pushd \"%V\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\OpenCMD]
@="在此打开命令行"
"Icon"="cmd.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\OpenCMD\command]
@="cmd.exe /s /k pushd \"%V\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\OpenCMD]
@="在此打开命令行"
"Icon"="cmd.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\OpenCMD\command]
@="cmd.exe /s /k pushd \"%V\""