|
I would try eliminating the USER and PASS keywords. I never used them.
If that doesn't work, forward the output file that is created and we can see
the error. I probably says something like "User 'USER' not valid" then goes
on and says everything after that is an invalid command.
So, your FTP Batch input file would look like this:
open 254.254.254.254
user
password
cd/qdls/folder
lcd f:\directory
get test.txt
quit
Bradley V. Stone
Taylor Corporation - OASIS Programmer/Analyst
bvstone@taylorcorp.com
> -----Original Message-----
> From: bclark@ussafety.com [SMTP:bclark@ussafety.com]
> Sent: Monday, December 14, 1998 2:50 PM
> To: Midrange-L
> Subject: FTP scripting
>
> This might be a little off topic but here goes. I am trying to automate
> the download of some files from the AS/400 using FTP. I chose FTP
> because I don't see the need to chew up a Client Access license for this
> application. I am having problems logging on to the AS/400 FTP server
> using a text file as a script. I keep getting invalid command messages
> when I attempt to use the USER and PASS subcommands. I have tried this
> using the Windows NT 4.0 FTP client as well the Windows '95 client.
>
> the script looks something like this:
> open 254.254.254.254
> USER user
> PASS password
> cd/qdls/folder
> lcd f:\directory
> get test.txt
> quit
>
> Can anybody tell me where I am going wrong? << File: Card for Bob Clark >>
>
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.