将cmd命令加入到右键

第一步

新建一个文件,名字如下:

 

 

 

 

第二步

文档打开该文件,复制进去这段内容,保存

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\cmd_here]
@="在此处打开命令行"
"Icon"="cmd.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\cmd_here\command]
@="\"C:\\Windows\\System32\\cmd.exe\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\cmdPrompt]
@="在此处打开命令行"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\cmdPrompt\command]
@="\"C:\\Windows\\System32\\cmd.exe\" \"cd %1\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\cmd_here]
@="在此处打开命令行"
"Icon"="cmd.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\cmd_here\command]
@="\"C:\\Windows\\System32\\cmd.exe\""

 

 

第三步

双击这个文件,确认->确认

 

 

 

好了,结束了

 

 

 

 

 

Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\cmd_here]@="在此处打开命令行""Icon"="cmd.exe"[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\cmd_here\command]@="\"C:\\Windows\\System32\\cmd.exe\""[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\cmdPrompt]@="在此处打开命令行"[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\cmdPrompt\command]@="\"C:\\Windows\\System32\\cmd.exe\" \"cd %1\""[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\cmd_here]@="在此处打开命令行""Icon"="cmd.exe"[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\cmd_here\command]@="\"C:\\Windows\\System32\\cmd.exe\""

posted @ 2020-03-19 09:48  祁峰_1024  阅读(136)  评论(0编辑  收藏  举报