Xref: utzoo comp.sys.ibm.pc:29747 comp.binaries.ibm.pc.d:3307 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!cs.dal.ca!silvert From: silvert@cs.dal.ca (Bill Silvert) Newsgroups: comp.sys.ibm.pc,comp.binaries.ibm.pc.d Subject: Re: How to hide 'echo off' in batch files? Summary: Only if your programming is perfect Message-ID: <3289@cs.dal.ca> Date: 4 Jun 89 12:25:19 GMT References: <1980@astroatc.UUCP> <122@sherpa.UUCP> Reply-To: bill@biomel.UUCP Organization: Habitat Ecology Div., Bedford Inst. of Oceanography Lines: 18 In article <122@sherpa.UUCP> rac@sherpa.UUCP (Roger A. Cornelius) writes: $$ Does anyone know how to turn off echoing in a batch file without $$ showing the 'echo off?' #There was something in a recent PC Magazine about this. If memory #serves, the method used was to redirect all console output to NUL using #the ctty command, then explicitly direct any output you want to appear #on the screen to CON. eg. "echo Enter Y or N > CON". Be sure to use #ctty to redirect output back to CON before ending your batch file. I hate to think what would happen if your user breaks out of the batch file. Is it really that important to hide one line? -- Bill Silvert, Habitat Ecology Division. Bedford Institute of Oceanography, Dartmouth, NS, Canada B2Y 4A2 UUCP: ...!{uunet,watmath}!dalcs!biomel!bill Internet: biomel@cs.dal.CA BITNET: bs%dalcs@dalac.BITNET