右键添加在当前目录打开命令行菜单
在电脑桌面创建文件:OpenCmdHere.reg 笔记本方式打开,
编辑添加如下脚本: 双击执行即可,在电脑任何地方右击,菜单中有“在此处打开命令窗口”
在电脑桌面创建文件:OpenCmdHere.reg
笔记本方式打开,编辑添加如下脚本:
运行脚本后,右键菜单 “在此处打开命令窗口” 可能会出现乱码,Win键+R键输入“regedit”打开注册表,按照脚本目录,依次修改乱码为中文即可。
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\""
保存退出