一、准备工作
- 从Windows Terminal Icon弄到Terminal.Ico的图标备用
- 创建存入Terminal.Ico的文件夹, 并换将上一步弄到的图标放入新建的文件夹
Microsoft Windows [版本 10.0.18363.959]
(c) 2019 Microsoft Corporation。保留所有权利。
C:Userslinxmouse>cd %localappdata%
C:UserslinxmouseAppDataLocal>mkdir Terminal
二、新建注册表文件,保存为wt.reg
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOTDirectoryshellWindowsTerminal]
@="Open Terminal here"
;"Icon"="%USERPROFILE%TerminalTerminal.ico" (Location to ICO)
"Icon"=hex(2):25,00,4c,00,4f,00,43,00,41,00,4c,00,41,00,50,00,50,00,44,00,41,
00,54,00,41,00,25,00,5c,00,54,00,65,00,72,00,6d,00,69,00,6e,00,61,00,6c,00,
5c,00,54,00,65,00,72,00,6d,00,69,00,6e,00,61,00,6c,00,2e,00,69,00,63,00,6f,
00,00,00
[HKEY_CLASSES_ROOTDirectoryshellWindowsTerminalcommand]
;@="%LOCALAPPDATA%MicrosoftWindowsAppswt.exe" -d "%1"
@=hex(2):22,00,25,00,4c,00,4f,00,43,00,41,00,4c,00,41,00,50,00,50,00,44,00,41,
00,54,00,41,00,25,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,00,
74,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,41,00,70,00,70,00,73,
00,5c,00,77,00,74,00,2e,00,65,00,78,00,65,00,22,00,20,00,2d,00,64,00,20,00,
22,00,25,00,31,00,22,00,00,00
三、效果展示