通过修改注册表或者直接导入注册表,都可以实现在右键菜单中添加打开cmd窗口。
导入注册表方式:将以下文本复制保存为reg文件,或者直接下载,点击运行,提示框点确定完成后可以看到右键菜单有了。
下载链接: https://pan.baidu.com/s/13XxjZKL_dPGfpCfAS8u7Fw 提取码: 5get
Windows Registry Editor Version 5.00
; 若原先有,先删除原来的
[-HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHere]
; 1.右键:命令行 @后为显示名字,icon为图标
[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHere]
@="Open with cmd"
"Icon"="C:\\windows\\system32\\cmd.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHere\command]
@="cmd.exe -noexit -command Set-Location -literalPath \"%V\""
; 2.右键:命令行(管理员)
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas]
@="Open with cmd(admin)"
"Icon"="C:\\windows\\system32\\cmd.exe"
"ShowBasedOnVelocityId"=dword:00639bc8
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
命令解释:[] 代表注册表路径,前面-代表删除此项;
@后面是注册表默认值,icon代表程序图标