在右键菜单中添加\"在此处打开CMD窗口\"

  1. 新建一个文本文件,重命名为openCMD.reg
  2. 用记事本打开该文件,输入以下内容
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\openCMD]
@="在此处打开CMD窗口"
"Icon"="cmd.exe"
[HKEY_CLASSES_ROOT\*\shell\openCMD\command]
@="\"C:\\Windows\\System32\\cmd.exe\""

[HKEY_CLASSES_ROOT\Directory\Background\shell\openCMD]
@="在此处打开CMD窗口"
"Icon"="cmd.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\openCMD\command]
@="\"C:\\Windows\\System32\\cmd.exe\""

[HKEY_CLASSES_ROOT\Directory\shell\openCMD]
@="在此处打开CMD窗口"
"Icon"="cmd.exe"
[HKEY_CLASSES_ROOT\Directory\shell\openCMD\command]
@="\"C:\\Windows\\System32\\cmd.exe\""

[HKEY_CLASSES_ROOT\Folder\shell\openCMD]
@="在此处打开CMD窗口"
"Icon"="cmd.exe"
[HKEY_CLASSES_ROOT\Folder\shell\openCMD\command]
@="\"C:\\Windows\\System32\\cmd.exe\""
  1. 保存,注意文件编码应设置为GBK
  2. 双击该文件,确定合并到注册表,完成~
  3. 删除这些注册表项时,将该文件中的以下内容进行修改,然后重新合并到注册表即可。

修改前:

[HKEY_CLASSES_ROOT\*\shell\openCMD]
[HKEY_CLASSES_ROOT\*\shell\openCMD\command]
[HKEY_CLASSES_ROOT\Directory\Background\shell\openCMD]
[HKEY_CLASSES_ROOT\Directory\Background\shell\openCMD\command]
[HKEY_CLASSES_ROOT\Directory\shell\openCMD]
[HKEY_CLASSES_ROOT\Directory\shell\openCMD\command]
[HKEY_CLASSES_ROOT\Folder\shell\openCMD]
[HKEY_CLASSES_ROOT\Folder\shell\openCMD\command]

修改后:

[-HKEY_CLASSES_ROOT\*\shell\openCMD]
[-HKEY_CLASSES_ROOT\*\shell\openCMD\command]
[-HKEY_CLASSES_ROOT\Directory\Background\shell\openCMD]
[-HKEY_CLASSES_ROOT\Directory\Background\shell\openCMD\command]
[-HKEY_CLASSES_ROOT\Directory\shell\openCMD]
[-HKEY_CLASSES_ROOT\Directory\shell\openCMD\command]
[-HKEY_CLASSES_ROOT\Folder\shell\openCMD]
[-HKEY_CLASSES_ROOT\Folder\shell\openCMD\command]

相关推荐