Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!wuarchive!uunet!mcsun!cernvax!chx400!ugun2b!ugsc2a!fisher From: fisher@sc2a.unige.ch Newsgroups: comp.sys.ibm.pc.misc Subject: Re: ECHOing > < | & in command.com Message-ID: <1990Dec3.111851.328@sc2a.unige.ch> Date: 3 Dec 90 09:18:51 GMT References: <4354@dnlunx.pttrnl.nl> Organization: University of Geneva, Switzerland Lines: 15 henkf@dnlunx.pttrnl.nl (Henk Fictorie) writes: > In a bat file I would like to ECHO the special characters: < > | &. rmich@Lise.Unit.NO (Rolf Michelsen) replies: > I haven't tested this, but the standard way of passing special characters as > parameters is to enclose the entire parameter in double quotes. You could > try something like this: ECHO "this is a test" This works, but you'll see the double quotes. I didn't find any good way to display these characters - special to command.com - using DOS. Many replacements of DOS' echo provide ways to display them, or to skip the final CR-LF. BTW: such a program (quite trivial to, really) is in queue for posting in c.b.i.p. It's called `write', and uses the `prompt' syntax for special characters ($e=ESC, $l='<', $g='>', etc.).