Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!sdd.hp.com!hplabs!hpcc05!hparc0!doug From: doug@hparc0.HP.COM (Doug Parsons) Newsgroups: comp.os.msdos.misc Subject: Re: How to put CARRIAGE RETURN in Batch file Message-ID: <3060001@hparc0.HP.COM> Date: 26 Jun 91 00:43:15 GMT References: <7130@disc.dla.mil> Organization: HP Australasian Response Centre (Melbourne) Lines: 32 I haven't tested this, but.. Create a file thus: C:> COPY CON CR. <-- copy from the console (kbd) to file called 'CR'. <-- hit Enter here, which puts a character in file Control-Z <-- Press Control-Z here, to terminate input (1) file copied. C:> What you have done is created a 2 character file consisting of a CR and a control-Z (end of file marker). Now you just have to use this as stdin (standard input, which is normally the keyboard) when you want a carriage return: myprog.exe < CR <-pretend MYPROG normally asks for a CR before continuing. 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! BTW, I use this technique to get around the "Are you sure? (Y/N) :" when you try to do a DEL *.*. I have a file that contains a YControl-Z, and do this: DEL *.*