首页 > 其他 > 详细

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

时间:2020-06-01 21:09:44      阅读:49      评论:0      收藏:0      [点我收藏+]
  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]

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

原文:https://www.cnblogs.com/harany/p/13027133.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!