Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


timmmay

20858 posts

Uber Geek
+1 received by user: 5350

Trusted
Lifetime subscriber

#270471 11-May-2020 12:04
Send private message

I have a big batch file I run occasionally. If I see an error I hit Control-C, but that just stops the current command - the next 20 commands in the batch file still run. I end up holding Control-C down but some of the commands still run. I'll do it a better way one day, but for now this is the easiest way.

 

I could close the DOS window, but that's inconvenient. Is there another way to stop the batch file running and exit to the command prompt?


Create new topic

This is a filtered page: currently showing replies marked as answers. Click here to see full discussion.

Varkk
643 posts

Ultimate Geek
+1 received by user: 477


  #2481111 11-May-2020 12:41
Send private message

I think if you quickly double tap ctrl-c you should then be prompted to terminate batch job (Y/N)

 

First hit terminates the current command, second sends the terminate to the batch job itself.


Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.