Batch File:
cd \foldername
ftp -s:inputactions.txt

INPUTACTIONS.TXT:
open ftpserver
anonymous
anonpwd@xxxxxxxxxxx
binary
cd \serverfolder
get filename
quit

John Brandt 
iStudio400.com 
(903) 523-0708 
Home of iS/ODBC - MSSQL access from iSeries and RPG. 




-----Original Message-----
From: daparnin@xxxxxxxxxxxxxxxxxx [mailto:daparnin@xxxxxxxxxxxxxxxxxx]
Sent: Wednesday, February 09, 2005 9:55 AM
To: pctech@xxxxxxxxxxxx
Subject: [PCTECH] Batch File With Redirected Input






I'm attempting to write a DOS batch file that will FTP to a server, log in,
change directories, and get a specific file.  I seem to remember having
done something similar a long time ago by issuing the command with it's
input redirected from a file.  When I run it, it doesn't fill in the
user-id and stops waiting on a password.  Here's what I've got.  What
doesn't look right?  Thanks.

Batch File:
cd \foldername
ftp servername < inputactions.txt


INPUTACTIONS.TXT:
anonymous

cd \serverfolder
get filename
quit



Dave Parnin
Nishikawa Standard Company
Topeka, IN  46571
daparnin@xxxxxxxxxxxxxxxxxx

-- 
This is the PC Technical Discussion for iSeries Users (PcTech) mailing list
To post a message email: PcTech@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/pctech
or email: PcTech-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/pctech.

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.849 / Virus Database: 577 - Release Date: 1/27/05
 

-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.6 - Release Date: 2/7/05
 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.6 - Release Date: 2/7/05
 

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.