• Windows Terminal添加到右键菜单


    给出我的注册表reg文件内容

    Windows Registry Editor Version 5.00
    
    ; Windows terminal
    
    [HKEY_CLASSES_ROOTDirectoryshellMenuWindowsTerminal]
    "MUIVerb"="Windows Terminal"
    "Icon"="C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_0.11.1191.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe"
    "ExtendedSubCommandsKey"="Directory\ContextMenus\MenuWindowsTerminal"
    
    
    [HKEY_CLASSES_ROOTDirectoryackgroundshellMenuWindowsTerminal]
    "MUIVerb"="Windows Terminal"
    "Icon"="C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_0.11.1191.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe"
    "ExtendedSubCommandsKey"="Directory\ContextMenus\MenuWindowsTerminal"
    
    [HKEY_CLASSES_ROOTDirectoryLibraryFoldershellMenuWindowsTerminal]
    "MUIVerb"="Windows Terminal"
    "Icon"="C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_0.11.1191.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe"
    "ExtendedSubCommandsKey"="Directory\ContextMenus\MenuWindowsTerminal"
    
    [HKEY_CLASSES_ROOTDriveshellMenuWindowsTerminal]
    "MUIVerb"="Windows Terminal"
    "Icon"="C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_0.11.1191.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe"
    "ExtendedSubCommandsKey"="Directory\ContextMenus\MenuWindowsTerminal"
    
    [HKEY_CLASSES_ROOTLibraryFolderBackgroundshellMenuWindowsTerminal]
    "MUIVerb"="Windows Terminal"
    "Icon"="C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_0.11.1191.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe"
    "ExtendedSubCommandsKey"="Directory\ContextMenus\MenuWindowsTerminal"
    
    ; Windows Terminal SUDO
    
    [HKEY_CLASSES_ROOTDirectoryshellMenuWindowsTerminalSudo]
    "MUIVerb"="Windows Terminal (Admin)"
    "Icon"="C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_0.11.1191.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe"
    "ExtendedSubCommandsKey"="Directory\ContextMenus\MenuWindowsTerminalSudo"
    
    
    [HKEY_CLASSES_ROOTDirectoryackgroundshellMenuWindowsTerminalSudo]
    "MUIVerb"="Windows Terminal (Admin)"
    "Icon"="C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_0.11.1191.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe"
    "ExtendedSubCommandsKey"="Directory\ContextMenus\MenuWindowsTerminalSudo"
    
    [HKEY_CLASSES_ROOTDirectoryLibraryFoldershellMenuWindowsTerminalSudo]
    "MUIVerb"="Windows Terminal (Admin)"
    "Icon"="C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_0.11.1191.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe"
    "ExtendedSubCommandsKey"="Directory\ContextMenus\MenuWindowsTerminalSudo"
    
    [HKEY_CLASSES_ROOTDriveshellMenuWindowsTerminalSudo]
    "MUIVerb"="Windows Terminal (Admin)"
    "Icon"="C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_0.11.1191.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe"
    "ExtendedSubCommandsKey"="Directory\ContextMenus\MenuWindowsTerminalSudo"
    
    [HKEY_CLASSES_ROOTLibraryFolderBackgroundshellMenuWindowsTerminalSudo]
    "MUIVerb"="Windows Terminal (Admin)"
    "Icon"="C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_0.11.1191.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe"
    "ExtendedSubCommandsKey"="Directory\ContextMenus\MenuWindowsTerminalSudo"
    
    ; Subcommands
    
    [HKEY_CLASSES_ROOTDirectoryContextMenusMenuWindowsTerminalshellCMD]
    "MUIVerb"="CMD"
    "ExtendedSubCommandsKey"=-
    "Icon"="imageres.dll,-5323"
    
    [HKEY_CLASSES_ROOTDirectoryContextMenusMenuWindowsTerminalshellCMDcommand]
    @="C:\Users\ligong\AppData\Local\Microsoft\WindowsApps\wt.exe -p "cmd" -d ."
    
    [HKEY_CLASSES_ROOTDirectoryContextMenusMenuWindowsTerminalshellPowershell]
    "MUIVerb"="Windows PowerShell"
    "ExtendedSubCommandsKey"=-
    "Icon"="imageres.dll,-5372"
    
    [HKEY_CLASSES_ROOTDirectoryContextMenusMenuWindowsTerminalshellPowershellcommand]
    @="C:\Users\ligong\AppData\Local\Microsoft\WindowsApps\wt.exe -p "Windows PowerShell" -d ."
    
    [HKEY_CLASSES_ROOTDirectoryContextMenusMenuWindowsTerminalshellUbuntu]
    "MUIVerb"="Ubuntu"
    "ExtendedSubCommandsKey"=-
    "Icon"="C:\Program Files\WindowsApps\CanonicalGroupLimited.UbuntuonWindows_2004.2020.424.0_x64__79rhkp1fndgsc\ubuntu.exe"
    
    [HKEY_CLASSES_ROOTDirectoryContextMenusMenuWindowsTerminalshellUbuntucommand]
    @="C:\Users\ligong\AppData\Local\Microsoft\WindowsApps\wt.exe -p "Ubuntu" -d ."
    
    ; Subcommands Sudo
    
    [HKEY_CLASSES_ROOTDirectoryContextMenusMenuWindowsTerminalSudoshellCMD]
    "MUIVerb"="CMD"
    "HasLUAShield"=""
    "Icon"="imageres.dll,-5324"
    
    [HKEY_CLASSES_ROOTDirectoryContextMenusMenuWindowsTerminalSudoshellCMD]
    @="cmd.exe /s /c pushd "%V" & start wt -p "cmd" -d ."
    
    [HKEY_CLASSES_ROOTDirectoryContextMenusMenuWindowsTerminalSudoshellPowershell]
    "MUIVerb"="Windows PowerShell"
    "HasLUAShield"=""
    "Icon"="imageres.dll,-5373"
    
    [HKEY_CLASSES_ROOTDirectoryContextMenusMenuWindowsTerminalSudoshellPowershellcommand]
    @="cmd.exe /s /c pushd "%V" & start wt -p "Windows PowerShell" -d ."
    
    [HKEY_CLASSES_ROOTDirectoryContextMenusMenuWindowsTerminalSudoshellUbuntu]
    "MUIVerb"="Ubuntu"
    "HasLUAShield"=""
    "Icon"="C:\Program Files\WindowsApps\CanonicalGroupLimited.UbuntuonWindows_2004.2020.424.0_x64__79rhkp1fndgsc\ubuntu.exe"
    
    [HKEY_CLASSES_ROOTDirectoryContextMenusMenuWindowsTerminalSudoshellUbuntucommand]
    @="cmd.exe /s /c pushd "%V" & start wt -p "Ubuntu" -d ."
    

    要注意的是,部分要替换为自己的用户名。
    配置ubuntu和windows terminal要注意自己的版本。
    比如凡是出现这样的字段

    CanonicalGroupLimited.UbuntuonWindows_2004.2020.424.0_x64__79rhkp1fndgsc\ubuntu.exe
    

    里面的2004.2020.424.0都要根据版本的情况设定。
    还有这里

    Microsoft.WindowsTerminal_0.11.1191.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe
    

    里面的0.11.1191.0_x64换成自己的版本。
    那怎么看里面的情况呢?
    首先取得权限:Win10下WindowsApps权限怎么获取-百度经验
    然后找到这个文件夹的名字
    一个
    另一个
    最终效果图
    结果
    参考:

  • 相关阅读:
    关于Adobe CS3套装的"此产品的许可已停止" 的解决方案
    Activity的生命周期 二
    APICS与AX的Master Planning(二)Rescheduling Assumption 重排假设
    COMVariantType的Date类型
    APICS与AX的Master Planning(一)Phantom bill of Material 虚项
    APICS与AX的Master Planning(四)Time Fence时限(时界)
    APICS与AX的Master Planning(三)Firm Planned Orders已确认计划订单
    设定Access数据库自增长字段初始
    SQL Server数据库导入导出数据方式比较
    个性博客七款超靓天气预报免费代码
  • 原文地址:https://www.cnblogs.com/lingr7/p/12812507.html
Copyright © 2020-2023  润新知