win7 右键增加打开 powershell选项

首先打开regedit


在{HKEY_CLASSES_ROOT\Directory\Background\shell\cmd\command}

下新建powershell以及command两个文件夹,如上图,

然后在command的REG_SZ的值输入

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoExit Set-Location "%V"


如果不小心误操作删除了cmd的键值,那么可以用下面的键值回复,cmd的REG_Sz键值为:

cmd.exe /s /k pushd "%V"


然后关闭注册表,shift+右键 ,出现的菜单中可以看到powershell,效果如下:



右键打开powershell我们会发现是黑色的,可以自己改下背景颜色,就可以和开始菜单中打开的powershell一样的颜色了。

属性中需要改的颜色比例组合是:

红:1

绿36

蓝:86



猜你喜欢

转载自blog.csdn.net/appleyuchi/article/details/80155233
今日推荐