Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!mcvax!ukc!warwick!dalm From: dalm@warwick.UUCP (D A L Michael) Newsgroups: comp.sys.ibm.pc Subject: Re: BAT files and ECHO OFF Keywords: .BAT FIles, ECHO OFF, DOS 3.3 Message-ID: <1802@ubu.warwick.UUCP> Date: 2 May 89 00:33:53 GMT References: <161@infovax.UUCP> Sender: news@warwick.UUCP Reply-To: dalm@emerald.UUCP (David Michael) Organization: Computer Science, Warwick University, Coventry CV4 7AL, U.K. Lines: 27 In article <161@infovax.UUCP> bl@infovax.UUCP (Bj|rn Larsson) writes: > >Dear everybody, long ago there circulated a number of binary patches >to COMMAND.COM (for DOS 2.x and 3.1) that set ECHO to default to OFF >when a .BAT file was executed. I like not to see the first statement >'ECHO OFF' echoed when a batch is run, so does anybody have this in- >formation for DOS 3.3 COMMAND.COM. (I guess I could browse around a >little in the executeable with some debugger, assuming that only the >location of the code has changed, not the code itself {at least not >drastically}. Still, if anybody already knows...) Well, this is a case of READ THE MANUAL! In DOS 3.3 there is a facility for batch files to NOT echo a command to screen. It is by starting the line with an @ sign. So if you start your autoexec.bat file and any other .bat files you have with: @echo off ...rest of stuff Then you will never see the ECHO OFF appear on the screen. --------------------------[ dalm@uk.ac.warwick ]----------------------------- ARPA: dalm%warwick.uucp%emerald.warwick.ac.uk@ucl-cs.arpa UUCP: ... seismo!mcvax!ukc!warwick!daisy!emerald!dalm JANET: dalm%warwick.uucp@uk.ac.warwick.emerald PHONE: (+44) 203 692320 TELEX: 837831 EMCO G, 837831 VIA OR G FAX: (+44) 865 726753 ----------------------------[ David Michael ]--------------------------------