Solved

CTRL-C

Posted on 1998-09-03
1
300 Views
Last Modified: 2010-04-26
you know that in a batch file, you can stop-run the program...but is there command line that i can include in the batch file to cancel the ctrl-c command... for people wont be able to stop the batch file?

thank!
0
Comment
Question by:poutney
1 Comment
 
LVL 12

Accepted Solution

by:
mark2150 earned 10 total points
Comment Utility
Nope. There's no way to totally guarentee that a batch won't be interrupted.

There are several tricks you can use like changing the STDIN device to NUL and such, but since these commands have to occur withing the batch the command redirecting STDIN itself can receive a <Ctrl Break> before it executes. So stopping the batch is just a matter of timing.

Someone will surely mention BREAK OFF, this actually doesn't eliminate the <Ctrl C> checking, it just reduces it's frequency so it's a little harder (not much) to stop.

You can also stop a program by causing a hardware fault (like opening the disk drive door while writing to floppy). This will universally trigger a "Critical Stop-Abort/Retry/Ignore" type of error that the user can break out of.

0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

Suggested Solutions

Hello to users to the new age of computers. There are so many products to choose from nowadays that you maybe confused to understand which product is the correct product for you. Let me explain briefly what should be the idea product for your best n…
Does your iMac really need a hardware upgrade? Will upgrading RAM speed-up your computer? If yes, then how can you proceed? Upgrading RAM in your iMac is not as simple as it may seem. This article will help you in getting and installing right RA…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now