Simple. Use the < switch to read the command file. The "free" Windows FTP
will read everything from the command file except the password, for which it
will prompt.

Example:

Testftp.txt contains:

<userid>
Stat
Quit

Sample run:

C:\DOCUME~2\Charles>ftp 12.34.56.78 <testftp.txt
User (12.34.56.78:(none)): Password:<type password here>
Connected to 12.34.56.78.
Type: ascii; Verbose: Off ; Bell: Off ; Prompting: On ; Globbing: On
Debugging: Off ; Hash mark printing: Off .
C:\DOCUME~2\Charles>

Charles



-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf
Of Andrew Chillman
Sent: Tuesday, May 16, 2006 3:12 AM
To: [email protected]
Subject: Re: FTP Script/Password


Hi

I came across this in the archives and wondered if anyone had an answer. I 
am trying to do exactly the same - and having exactly the same lack of 
success as the original poster!

Thanks

Andy Chillman
Lead Systems Programmer 
euroConex Technologies Ltd 


On Wed, 17 Oct 2001 15:11:44 -0500, Jim Sumrall <[EMAIL PROTECTED]> 
wrote:

>I would like to run FTP from W/NT to OS/390 2.10.  I can see how to use a
>script file with an embedded password.  I would like to use a script file
>that stops and prompts for the password, then continues.  Right now, if I
>don't code a password, it reads the next line of the script as the 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to