把windows terminal添加到右鍵菜單


  1. 從"https://github.com/microsoft/terminal/blob/master/res/terminal.ico"下載圖標(可省略)
  2. 把圖標放到某個文件夾內,比如"%USERPROFILE%\AppData\Local\terminal"內
  3. 新建.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
    
  4. 以管理員運行腳本


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM