Windows10没有了像Windows7一样右键菜单在此处打开命令提示符,即使按住Shift右键菜单也只有在此处打开Powershell窗口,有时候还是CMD命令提示符方便。
以下方法可以添加右键菜单在此处打开命令提示符
1、打开注册表
使用快捷键Windows键+R键打开运行对话框,输入regedit,回车打开注册表。
2、添加注册表项
2.1 文件夹右键菜单
HKEY_CLASSES_ROOT\Directory\shell\下创建项OpenCmdHere
OpenCmdHere默认值修改为在此处打开命令提示符
新建字符串值Icon,值修改为cmd.exe
HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHere\下创建项command
command默认值修改为cmd.exe /s /k pushd "%V"
2.2 文件夹空白处右键菜单
HKEY_CLASSES_ROOT\Directory\Background\shell\下创建项OpenCmdHere
OpenCmdHere默认值修改为在此处打开命令窗口
新建字符串值Icon,值修改为cmd.exe
HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHere\下创建项command
command默认值修改为cmd.exe /s /k pushd "%V"
2.3 磁盘右键菜单
HKEY_CLASSES_ROOT\Drive\shell\下创建项OpenCmdHere
OpenCmdHere默认值修改为在此处打开命令窗口
新建字符串值Icon,值修改为cmd.exe
HKEY_CLASSES_ROOT\Drive\shell\OpenCmdHere\下创建项command
command默认值修改为cmd.exe /s /k pushd "%V"
2.4 库右键菜单
HKEY_CLASSES_ROOT\LibraryFolder\background\shell\下创建项OpenCmdHere
OpenCmdHere默认值修改为在此处打开命令窗口
新建字符串值Icon,值修改为cmd.exe
HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenCmdHere\下创建项command
command默认值修改为cmd.exe /s /k pushd "%V"
2.5 注册表文件在文章最后,其中addCMD.reg是增加右键菜单的CMD,delCMD.reg是删除右键菜单的CMD,需要重启Windows资源管理器才会生效。
addCMD.reg内容如下:
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHere] @="在此处打开命令提示符" "Icon"="cmd.exe" [HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHere\command] @="cmd.exe /s /k pushd \"%V\"" [HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHere] @="在此处打开命令窗口" "Icon"="cmd.exe" [HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHere\command] @="cmd.exe /s /k pushd \"%V\"" [HKEY_CLASSES_ROOT\Drive\shell\OpenCmdHere] @="在此处打开命令窗口" "Icon"="cmd.exe" [HKEY_CLASSES_ROOT\Drive\shell\OpenCmdHere\command] @="cmd.exe /s /k pushd \"%V\"" [HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenCmdHere] @="在此处打开命令窗口" "Icon"="cmd.exe" [HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenCmdHere\command] @="cmd.exe /s /k pushd \"%V\""
delCMD.reg内容如下:
Windows Registry Editor Version 5.00 [-HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHere] [-HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHere\command] [-HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHere] [-HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHere\command] [-HKEY_CLASSES_ROOT\Drive\shell\OpenCmdHere] [-HKEY_CLASSES_ROOT\Drive\shell\OpenCmdHere\command] [-HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenCmdHere] [-HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenCmdHere\command]
目前有 0 条评论