- 從"https://github.com/microsoft/terminal/blob/master/res/terminal.ico"下載圖標(可省略)
- 把圖標放到某個文件夾內,比如"%USERPROFILE%\AppData\Local\terminal"內
- 新建.bat文件,並把下列代碼拷貝進去保存
@echo off reg.exe add "HKEY_CLASSES_ROOT\Directory\Background\shell\wt" /f /ve /d "Windows Terminal here" reg.exe add "HKEY_CLASSES_ROOT\Directory\Background\shell\wt" /f /v "Icon" /t REG_EXPAND_SZ /d "%USERPROFILE%\AppData\Local\terminal\terminal.ico" reg.exe add "HKEY_CLASSES_ROOT\Directory\Background\shell\wt\command" /f /ve /t REG_EXPAND_SZ /d "%LOCALAPPDATA%\Microsoft\WindowsApps\wt.exe pause
- 以管理員運行腳本