Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!think.com!rpi!crdgw1!crdos1!davidsen From: davidsen@crdos1.crd.ge.COM (Wm E Davidsen Jr) Newsgroups: comp.os.msdos.misc Subject: Re: How to put CARRIAGE RETURN in Batch file Message-ID: <3490@crdos1.crd.ge.COM> Date: 27 Jun 91 14:27:17 GMT References: <7130@disc.dla.mil> <4579@polari.UUCP> Reply-To: davidsen@crdos1.crd.ge.com (bill davidsen) Organization: GE Corp R&D Center, Schenectady NY Lines: 22 I think you mean you want to pass data to a running program from a batch file, since every line in a batch file already ends with a CR. You can do this by writing it to a file and then redirecting the input: @echo off rem autotransfer up to three files from a single host and directory rem (and mode), using ftp rem rem Usage: efteepee host dir mode file [ file [ file ]] rem echo cd %2 >ftp.tmp echo %3 >>ftp.tmp for %%n in (%4 %5 %6) do echo get %%n >>ftp.tmp echo quit >>ftp.tmp ftp %1