jmjc
V2EX  ›  问与答

windows 终止批处理操作吗(Y/N)? - 求助

  •  
  •   jmjc · Jun 21, 2019 · 5037 views
    This topic created in 2701 days ago, the information mentioned may be changed or developed.

    windows ctrl + c 弹出 “终止批处理操作吗(Y/N)?” 提示,但是无论你按 y 还是 Y 还是 n 还是 N 还是其他... 系统都会终止进程。

    有谁知道按哪个键可以不终止么?

    我的系统是 windows 10.

    6 replies  •  2020-06-04 10:40:46 +08:00
    zwl2012
    zwl2012
    Jun 21, 2019 via iPhone❤️1
    1
    你都终止批处理了 系统自然会结束内部运行的进程
    zwl2012
    zwl2012
    Jun 21, 2019 via iPhone❤️1
    2
    你可以尝试使在批处理中用 start 运行程序,他会 fork 一个新窗口运行。你主窗口 Ctrl+C 就不影响新开的进程了
    oott123
    oott123
    Jun 21, 2019❤️1
    3
    意思是问你,一个 bat 里有四五条命令,要不要继续执行后面的进程
    jmjc
    jmjc
    OP
    Jun 21, 2019
    4
    @oott123 不是,我理解是这样的
    ctrl + c 是终止进程,然后终止前系统会提示你, “终止批处理操作吗(Y/N)?”

    但是无论我按 y or n,系统都会终止,就觉得那个提示好没意义啊。
    oott123
    oott123
    Jun 21, 2019❤️1
    5
    说明你理解得不对呗。。
    longjiahui
    longjiahui
    Jun 4, 2020
    6
    我也。。。。
    @jmjc
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1104 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 23:20 · PVG 07:20 · LAX 15:20 · JFK 18:20
    ♥ Do have faith in what you're doing.