Solved

CTRL-C

Posted on 1998-09-03
1
307 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
ID: 1010251
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need a PTZ webcam I can control via web or phone app 2 62
general question about new tv 7 81
Guidelines for building a gaming PC 17 69
Locked BIOS on HP laptop 9 59
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
This article outlines why you need to choose a backup solution that protects your entire environment – including your VMware ESXi and Microsoft Hyper-V virtualization hosts – not just your virtual machines.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

679 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