将Windows Terminal添加到右键菜单
准备图标
Icon文件从GitHub上下载即可,随意放置。
我这里放在了
,方便所有用户调用。C:\Windows\
准备注册表文件
是在此文件运行Windows Terminal。wt.exe -d "%v."
新建一个Reg文件,填入以下信息:
Windows Registry Editor Version 5.00
;库
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\Terminal]
"ExtendedSubCommandsKey"="Directory\\ContextMenus\\Terminal"
"Icon"="C:\\Windows\\wt.ico"
"MUIVerb"="&Windows 终端"
;文件夹
[HKEY_CLASSES_ROOT\Directory\background\shell\Terminal]
"ExtendedSubCommandsKey"="Directory\\ContextMenus\\Terminal"
"Icon"="C:\\Windows\\wt.ico"
"MUIVerb"="&Windows 终端"
;桌面
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Terminal]
"ExtendedSubCommandsKey"="Directory\\ContextMenus\\Terminal"
"Icon"="C:\\Windows\\wt.ico"
"MUIVerb"="&Windows 终端"
;选中的文件夹
[HKEY_CLASSES_ROOT\Directory\shell\Terminal]
"ExtendedSubCommandsKey"="Directory\\ContextMenus\\Terminal"
"MUIVerb"="&Windows 终端"
"Icon"="C:\\Windows\\wt.ico"
;本地磁盘
[HKEY_CLASSES_ROOT\Drive\shell\Terminal]
"ExtendedSubCommandsKey"="Directory\\ContextMenus\\Terminal"
"Icon"="C:\\Windows\\wt.ico"
"MUIVerb"="&Windows 终端"
;二级菜单
[HKEY_CLASSES_ROOT\Directory\ContextMenus\Terminal]
;二级菜单 在此打开
[HKEY_CLASSES_ROOT\Directory\ContextMenus\Terminal\shell\here]
"MUIVerb"="&Windows 终端"
"Icon"="C:\\Windows\\wt.ico"
[HKEY_CLASSES_ROOT\Directory\ContextMenus\Terminal\shell\here\command]
@="wt.exe -d \"%v.\""
;二级菜单 管理员方式打开
[HKEY_CLASSES_ROOT\Directory\ContextMenus\Terminal\shell\runas]
"MUIVerb"="&Windows 终端(管理员)"
"Icon"="C:\\Windows\\wt.ico"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\ContextMenus\Terminal\shell\runas\command]
@="wt.exe -d \"%v.\""
导入注册表
双击Reg文件,导入注册表。
效果如下
桌面
选中的文件夹
文件夹
磁盘驱动器
Comments | NOTHING