【转载】win10任意地方右键打开cmd

原文

https://blog.csdn.net/Mr_BEelzebub/article/details/78776104?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase

简记

创建一个文件叫 xx.reg,复制以下内容到里面,保存后双击即可;

空白处右键就会出现cmd_here,可以自己改这个名称

`
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-07-05 21:31  心存善念  阅读(334)  评论(0编辑  收藏  举报