V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
wsds
V2EX  ›  程序员

cmder 怎么关掉 ctrl+c 提示:^C 终止批处理操作吗(Y/N)?

  •  
  •   wsds · Aug 16, 2018 · 5885 views
    This topic created in 2825 days ago, the information mentioned may be changed or developed.

    如题,confirm 选项已全关,但仍没卵用,每次终止程序,还得按 y, 实在是神烦,就不能让我爽爽的直接终止吗

    7 replies    2020-01-13 10:19:19 +08:00
    wanganjun
        1
    wanganjun  
       Aug 16, 2018
    可以再按一次 ctrl + c
    gx1249319666
        2
    gx1249319666  
       Aug 16, 2018
    你连按两次 ctrl+c 就退出来了
    wsds
        3
    wsds  
    OP
       Aug 16, 2018
    @wanganjun 额,确实是个办法,这玩意儿,是没关闭这提示的入口 吗
    kokutou
        4
    kokutou  
       Aug 16, 2018 via Android
    原生就有这提示啊。
    geelaw
        5
    geelaw  
       Aug 16, 2018   ❤️ 1
    这个和 cmder 没关系,batch 的解释运行是 cmd.exe 负责,cmd.exe 有这个提示,而且没有关闭的选项。

    有人用非常鬼畜的方法绕过这个东西——修改 cmd.exe ,http://axil.github.io/patching-cmdexe.html

    然而你不应该这样做——这可能导致 cmd.exe 在今后的更新中不被识别从而版本错乱,或者什么乱七八糟的问题出来。此外现在的 Windows 系统文件保护机制使随便修改 cmd.exe 非常困难。
    alvince
        6
    alvince  
       Aug 16, 2018
    如果你的意图只是想终止的话。。连按两次 ctrl + c 就行了
    有什么可纠结的,多按一次 C 键成本很高吗
    yafoo
        7
    yafoo  
       Jan 13, 2020
    @alvince 求救啊,为什么我按两次 ctrl + c 不管用?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5697 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 07:56 · PVG 15:56 · LAX 00:56 · JFK 03:56
    ♥ Do have faith in what you're doing.