-
打开
regedit.exe -
找到
计算机\HKEY_CLASSES_ROOT\Directory\Background\shell。 -
在项下建立新项
Powershell,并且在Powershell项下建立新项command,如图所示:

-
在
Powershell的默认的项中填写名称在此处打开Powershell窗口。 -
新建字符串值
Extended,表示需要点击Shift以后才能显示。 -
(可选)添加字符串值
Icon,内容为powershell.exe,这样在菜单栏上会显示图标。 -
在子项
command的默认值中填写C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -command Set-Location -literalPath '%V'。



















