Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!super.upenn.edu!dsl.cis.upenn.edu!catone From: catone@dsl.cis.upenn.edu (Tony Catone) Newsgroups: comp.sys.ibm.pc,comp.misc Subject: Re: ECHO ON default Message-ID: <1128@super.upenn.edu.upenn.edu> Date: Mon, 4-May-87 12:18:45 EDT Article-I.D.: super.1128 Posted: Mon May 4 12:18:45 1987 Date-Received: Tue, 5-May-87 01:47:02 EDT References: <2422@ncoast.UUCP> <1687@bnrmxtv.UUCP> <836@kodak.UUCP> Sender: root@super.upenn.edu.upenn.edu Reply-To: catone@dsl.cis.upenn.edu.UUCP (Tony Catone) Organization: University of Pennsylvania Lines: 24 Xref: mnetor comp.sys.ibm.pc:3742 comp.misc:479 In article <836@kodak.UUCP> gardner@kodak.UUCP (dick gardner) writes: >In article <1687@bnrmxtv.UUCP> connery@bnrmtv.UUCP writes: >>> When I execute a batch file, it >>> shows all the commands bing executed. >>> But when I set ECHO OFF , you STILL >>> SEE THE SATEMENT "ECHO OFF". >>> Rob DeMarco >> >Could it be that after you 'turned ECHO OFF' that you then try to >echo a blank line? I'm pretty sure that this will result in the >'ECHO OFF' statement being printed each time you try to do that. Nope. If you think about it, what is happening makes perfect sense from DOS's point of view. All commands are echoed to the console unless echo is off; echo off is a command; until echo off is executed, echo is still on, so the echo off line is shown to the user. While this probably doesn't help you accomplish what you want, that's how it works. You could try playing with ANSI escape sequences and set the character attribute to invisible to hide the command, but that may be more trouble than you want. - Tony catone@dsl.cis.upenn.edu catone@wharton.upenn.edu