码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2020-06-01 20:32:25      阅读:56      评论:0      收藏:0      [点我收藏+]

标签:菜单   directory   icon   ack   完成   保存   文本文件   sse   注册   

  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窗口"

标签:菜单   directory   icon   ack   完成   保存   文本文件   sse   注册   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!