🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.misc
Article #3533

Re: How to put CARRIAGE RETURN in Batch file

#3533
From: Wm E Davidsen Jr
Date: Thu, 27 Jun 1991 14:27
22 lines
1341 bytes
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 <ftp.tmp

I'm not a batch wizard, but this shows how to do what you want.

-- 
bill davidsen	(davidsen@crdos1.crd.GE.COM -or- uunet!crdgw1!crdos1!davidsen)
  GE Corp R&D Center, Information Systems Operation, tech support group
  Moderator comp.binaries.ibm.pc and 386-users digest.
Technical Details
Message-ID: <3490@crdos1.crd.ge.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!think.com!rpi!crdgw1!crdos1!davidsen
References: <7130@disc.dla.mil> <4579@polari.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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