Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!ucsd!nprdc!malloy From: malloy@nprdc.arpa (Sean Malloy) Newsgroups: comp.sys.ibm.pc Subject: Re: BAT files and ECHO OFF Message-ID: <1849@skinner.nprdc.arpa> Date: 1 May 89 21:12:07 GMT References: <161@infovax.UUCP> <5350@hubcap.clemson.edu> Reply-To: malloy@nprdc.arpa (Sean Malloy) Organization: Navy Personnel R&D Center, San Diego Lines: 24 In article <5350@hubcap.clemson.edu> rwberry@hubcap.clemson.edu (Robert W Berry) writes: >From article <161@infovax.UUCP>, by bl@infovax.UUCP (Bj|rn Larsson): > [stuff about needing DOS 3.3 patch to set echo default to off] > One the nice features of PC-DOS 3.3 (I'm not sure about MS-DOS 3.3 >though) is that Microsoft finally caught this pain in the ***. They >implemented a new form of the echo command (@echo) that prevents it from >being displayed. > Try "@echo off" as the first line of your batch file. It's more general than that; in DOS 3.3, using an '@' as the first character of a batch file command prevents the command from being echoed regardless of the command -- "@SET 87=Y", for example, simply doesn't echo. And you reduce the number of commands in your batch file through not having all the echo on/off commands. Sean Malloy | "The proton absorbs a photon Navy Personnel Research & Development Center | and emits two morons, a San Diego, CA 92152-6800 | lepton, a boson, and a malloy@nprdc.navy.mil | boson's mate. Why did I ever | take high-energy physics?"