文件夹名称右键菜单更改
注册表路径
计算机\HKEY_CLASSES_ROOT\Folder\shell\
在shell文件夹右键新建[项]
- 命名openpowershell
- 默认值改为:[在powershell中打开]
再在[powershell]中新建[字符串值]
- 名称:Iocn (展示图标)
- 数据填powershell的安装路径,加上
\powershell.exe
再在openpowershell文件夹内新建项
- 名称:command
- 默认值输入:
powershell.exe -noexit -command Set-Location '%V'
这个注册表可以实现,点击文件夹右键菜单中看见 power shell
桌面空白/文件夹内空白处右键菜单修改
- 注册表路径
计算机\HKEY_CLASSES_ROOT\Directory\Background\shell
操作不走同上: - 新建项[openpowershell]
- 命名[在powershell中打开]
- 在新建[字符串值]
- 名称:Iocn (展示图标)
- 数据填powershell的安装路径,加上
\powershell.exe
- 再在openpowershell文件夹内新建项
- 名称:command
- 默认值输入:
powershell.exe -noexit -command Set-Location '%V'