您的位置: 主页 > 电脑公司系统教程 >

win7系统在右键菜单添加“在此处打开命令窗口”设置项的解决方法?

发布日期:2020-01-27 作者:电脑公司特别版 来源:http://www.dngstbb.com
电脑公司Win7 体验2021新年春节版32位
win7系统在右键菜单添加“在此处打开命令窗口”设置项的解决方法?

很多用户都知道在win7创意者更新中,命令提示符已被powershell取代,如果大家还是想继续使用命令提示符,那么可以在桌面右键菜单中添加“在此处打开命令窗口”设置项,那么怎么在右键菜单添加“在此处打开命令窗口”设置项呢?下面就为大家介绍win7系统在右键菜单添加“在此处打开命令窗口”设置项的方法。
win7系统

win7系统如何在右键菜单中添加“在此处打开命令窗口”设置项?

1、在设置前,系统右键菜单如下图所示,并没有“在此处打开命令窗口”;
win7系统1

2、打开记事本,将如下内容复制到记事本中;

01windows Registry Editor Version 5.00

02[HKEY_CLAssEs_RooT\directory\shell\openCmdHere]

03@="在此处打开命令提示符"

04"icon"="cmd.exe"

05[HKEY_CLAssEs_RooT\directory\shell\openCmdHere\command]

06@="powershell -windowstyle hidden -Command \"start-process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs\""

07[HKEY_CLAssEs_RooT\directory\Background\shell\openCmdHere]

08@="在此处打开命令窗口"

09"icon"="cmd.exe"

10[HKEY_CLAssEs_RooT\directory\Background\shell\openCmdHere\command]

11@="powershell -windowstyle hidden -Command \"start-process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs\""

12[HKEY_CLAssEs_RooT\drive\shell\openCmdHere]

13@="在此处打开命令窗口"

14"icon"="cmd.exe"

15[HKEY_CLAssEs_RooT\drive\shell\openCmdHere\command]

16@="powershell -windowstyle hidden -Command \"start-process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs\""

17[HKEY_CLAssEs_RooT\LibraryFolder\background\shell\openCmdHere]

18@="在此处打开命令窗口"

19"icon"="cmd.exe"

20[HKEY_CLAssEs_RooT\LibraryFolder\background\shell\openCmdHere\command]

21@="powershell -windowstyle hidden -Command \"start-process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs\""

复制代码
win7系统2

3、点击记事本左上角的“文件”,在下拉菜单中选择“另存为”;
win7系统3

4、在打开的另存为窗口,先点击窗口左侧的“桌面”,然后在在文件名(n)栏中输入“openCmdHere.reg”,再点击“保存”;
win7系统4

5、回到系统桌面,左键双击“openCmdHere.reg”注册表文件图标,这时会弹出一个编辑器对话框,点击“是”;
win7系统5

6、点击“是”以后,紧接着又会弹出一个注册表编辑器对话框,点击“确定”;
win7系统6

7、这样操作之后,桌面右键菜单就成功添加“在此处打开命令窗口”选项了,如下图所示。
win7系统7

以上就是win7系统右键菜单添加“在此处打开命令窗口”设置项的方法了,想要设置命令提示符的用户,可以按照上面教程操作。

系统专题推荐