Newsgroups: comp.os.msdos.misc
Path: utzoo!telly!druid!darcy
From: darcy@druid.uucp (D'Arcy J.M. Cain)
Subject: Re: How to put CARRIAGE RETURN in Batch file
Message-ID: <1991Jun26.213951.344@druid.uucp>
Organization: D'Arcy Cain Consulting, West Hill, Ontario
References: <7130@disc.dla.mil> <3060001@hparc0.HP.COM>
Date: Wed, 26 Jun 91 21:39:51 GMT

In article <3060001@hparc0.HP.COM> Doug Parsons writes:
[ stuff deleted ]
>myprog.exe < CR      <-pretend MYPROG normally asks for a CR before continuing.
No need to create a file.  Try this:
echo. | myprog.exe

>Note that this doesn't work with PAUSE (well, it didn't work for me, anyway).
>I hope that won't be a problem as the solution for PAUSE is to remove it!
This doesn't work if you feed a batch file either but it does work if you
do "echo. | pause" but I can't see any real use for that.

>DEL *.* <Y           <-- The file is named "Y."
And this can be:
  echo Y | del *.*

The advantage to this system is you don't need a separate file for every
type of input and you don't have to assume the existence of the file or
know the path to it.

-- 
D'Arcy J.M. Cain (darcy@druid)     |
D'Arcy Cain Consulting             |   There's no government
Toronto, Ontario, Canada           |   like no government!
+1 416 424 2871                    |
