1.

Solve : Ooops... I closed it. How do I prevent accidental closure of DOS programs??

Answer»

Hi! I have a RELATIVELY simple .BAT file which calls up a simple command-shell '.exe' program. Is there any code that I can add to my .BAT file that would display "ARE YOU SURE YOU WANT TO EXIT THIS PROGRAM?" in case I accidentally hit the "X" in the top right window (that is, accidentally CLOSING the command-shell window).
Help is greeeeatly appreciated,
--BHThe short answer is "no". If you really need the ABILITY to do this, you shouldn't be using batch.



Discussion

No Comment Found