windows添加右键打开终端

发布时间 2024-01-09 10:32:53作者: Lumeng

任意位置创建文本文档,重命名为x.reg,写入如下内容:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHere]

@="open Terminal in here"

[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHere\command]

@="cmd.exe -noexit -command Set-Location -literalPath \"%V\""

保存退出,然后双击运行即可。