1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to? ctrl-c does not prompt "Terminate batch job"

Discussion in 'Support' started by Charles Bloom, Nov 1, 2013.

  1. Charles Bloom

    Joined:
    Nov 1, 2013
    Messages:
    2
    Likes Received:
    0
    In TCC it seems ctrl-c immediately terminates the current batch file (but continues parent batch files).

    I do not get any "Terminate batch job (Y/N)?" prompt the way I do in CMD.

    Is this expected behavior? Is there a setting I can change to make it behave like CMD?

    Simple test :

    z1.bat :
    call z2.bat
    echo after z2

    z2.bat :
    pause

    If I hit ctrl-c at the pause under TCC I always see the "after z2"
     
  2. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,307
    Likes Received:
    39
    Type OPTION and press Enter. Select the Startup tab, then look for the option "Cancel Batch File on Ctrl-C" (at the upper right). Turn off the tick box, then click on OK.
     
  3. Charles Bloom

    Joined:
    Nov 1, 2013
    Messages:
    2
    Likes Received:
    0
    Thanks much!

    Also for my own reference, TCC's Y/N/A is rather confusingly different from CMD's Y/N

    CMD Y = TCC A (terminate all)
    CMD N = TCC Y (terminate current)
     

Share This Page