robertd@ncoast.UUCP (Rob DeMarco) (04/26/87)
When I execute a batch file, it shows all the commands being executed. But when I set ECHO OFF , you STILL SEE THE SATEMENT "ECHO OFF". This can get perticularly anoying when executing several batchfiles at once as you will see a who column of ECHO OFF's. I tried ECHO OFF from the command line, but lost my prompt. How ever, when I executed a batch file It defaulted to echo off , i.e. I didn't see "ECHO OFF" after I executed the file. The problem is that when some commands are executed in that batch file or when another batch command is executed in the batch file echo is turned back on again. Is there a way to stop this so that I no longer have to worry about command echoing? Thanx, [> Rd -- [=====================================] [ Rob DeMarco ] [ UUCP:decvax!cwruecmp!ncoast!robertd ] [ ] [ "bus error - passengers dumped" ] [=====================================]
connery@bnrmtv.UUCP (Glenn Connery) (04/29/87)
> When I execute a batch file, it > shows all the commands being executed. > But when I set ECHO OFF , you STILL > SEE THE SATEMENT "ECHO OFF". > Rob DeMarco There have been patches posted for all the versions of DOS to make ECHO OFF the default, but probably the best way is to take advantage of the current $75.00 upgrade from any version of DOS and go to DOS 3.3 where you can say "@ECHO OFF" and it won't get echoed... -- Glenn Connery, Bell Northern Research, Mountain View, CA {hplabs,amdahl,3comvax}!bnrmtv!connery
connery@bnrmtv.UUCP (04/29/87)
> 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 There have been patches posted for all the versions of DOS to make ECHO OFF the default, but probably the best way is to take advantage of the current $75.00 upgrade from any version of DOS and go to DOS 3.3 where you can say "@ECHO OFF" and it won't get echoed... -- Glenn Connery, Bell Northern Research, Mountain View, CA {hplabs,amdahl,3comvax}!bnrmtv!connery
gardner@kodak.UUCP (dick gardner) (05/04/87)
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. =#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=# Dick Gardner -- Eastman Kodak Co. Rochester, New York 14650 Phone: (716) 477-1002 UUCP: {allegra,seismo}!rochester!kodak!gardner "Research is what I do when I don't know what I'm doing" =#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#
catone@dsl.cis.upenn.edu (Tony Catone) (05/04/87)
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