Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!shuldig.Huji.AC.IL!news From: news@shuldig.Huji.AC.IL (news) Newsgroups: comp.sys.ibm.pc Subject: Re: How can I disable Control-C ? Message-ID: <359@shuldig.huji.ac.il> Date: 13 Jun 89 14:03:19 GMT References: <10998@orstcs.CS.ORST.EDU> Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: yogi%shum.UUCP@humus.Huji.AC.IL (Yossi Gil) Organization: Hebrew University of Jerusalem, ISRAEL Lines: 23 to your config.sys. This will make command.com start with nul as the tty device. (This will also save you the echo off problem) If anyone try to Ctrl-C out of your autoexec.bat, he will hang the machine. You must remember to add a ctty coon in the end of your autoexec.bat. For ordinary batch files try command /c mybatch nul while your batch file can look like echo off do something ctty con You can even combine the two in the same batch file: if not [%1]==[%0] command /c %0 %0 nul echo off gfhfgfg kjhhjkjkjh hjghghgj etc etc etc ctty con exit From: yogi@shum.huji.ac.il (Yossi Gil) Path: shum!yogi