kebamt
V2EX  ›  Windows

Windows 设置默认 cmd 为 Windows Terminal,而非 cmd.exe

  •  
  •   kebamt · Oct 16, 2021 · 3044 views
    This topic created in 1696 days ago, the information mentioned may be changed or developed.
    有没有办法把 cmd 命令跟别的终端绑定一起,运行 cmd 命令时打开其他终端而非 cmd.exe 。cmd.exe 这个终端太拉了,路径格式都能概率性识别,运行几次才能识别成功。

    试了用 Windows Terminal 快捷方式覆盖掉 cmd.exe 文件,可是不让覆盖。
    11 replies    2024-12-19 10:37:15 +08:00
    codehz
        1
    codehz  
       Oct 16, 2021
    不是就在设置菜单里吗
    https://imgur.com/a/0nhXOgh
    kebamt
        2
    kebamt  
    OP
       Oct 16, 2021
    @codehz 请问你这个是在哪儿打开出现的?我这边设置离找不到
    https://i.loli.net/2021/10/16/od1izNHqpnxDOfe.png
    kebamt
        4
    kebamt  
    OP
       Oct 16, 2021
    @codehz 找到了您的截图中设置界面,可是选不了 Windows Terminal,只有 cmd 一个,可是我已经安装了 Windows Terminal 的呀(最新正式版)。我看您截图上是 Preview 版,是必须要 Preview 版才能更改吗?谢谢
    kebamt
        5
    kebamt  
    OP
       Oct 16, 2021
    @Semidio 好的,回复早了几秒,我去试试预览版
    kebamt
        6
    kebamt  
    OP
       Oct 16, 2021
    安装 Preview 版后解决了,谢谢大家。
    Garphy
        7
    Garphy  
       Oct 22, 2021
    21h1 不支持这个功能,有选项的位置是空的···
    kebamt
        8
    kebamt  
    OP
       Oct 22, 2021 via iPhone
    @Garphy
    引用:
    Starting with Windows 10 build 21390, you can now select Windows Console Host (default) or Windows Terminal Preview v1.9.1445.0 or higher as the default terminal application (emulator).

    按微软说法版本号需要大于等于 Windows 10 build 21390 才可以更改
    kebamt
        9
    kebamt  
    OP
       Oct 22, 2021 via iPhone
    @Garphy 上面👆Semidio 发的链接里有相关要求
    Garphy
        10
    Garphy  
       Oct 22, 2021
    @kebamt 那还早着,囧
    yaosj2k
        11
    yaosj2k  
       Dec 19, 2024
    现在有个问题, 怎么从 windows terminal 改回去
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5704 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 06:35 · PVG 14:35 · LAX 23:35 · JFK 02:35
    ♥ Do have faith in what you're doing.