添加右键在此处打开命令行-Win篇

1,147 阅读1分钟

PS:每次想要使用CMD命令行,都要 Win + R,输入cmd打开,然后再cd进入到目录下执行命令,感觉非常麻烦。 所有想到要在右键中添加 以管理员方式打开CMD命令行 的菜单。

WIN右键打开 CMD 窗口

一键自动导入脚本,将以下内容保存成reg文件,如cmd.reg,双击该文件自动导入设置。

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCMD]
"ShowBasedOnVelocityId"=dword:00639bc8

[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCMD\command]
@="cmd.exe /s /k pushd \"%V\""

WIN右键打开 Powershell 窗口

一键自动导入脚本,将以下内容保存成reg文件,如powershell.reg,双击该文件自动导入设置。

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenSHELL]
"ShowBasedOnVelocityId"=dword:00639bc8

[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenSHELL\command]
@="powershell.exe -noexit -command Set-Location -literalPath  \"%V\""