HP3000-L Archives

December 2002, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Arthur Frank <[log in to unmask]>
Reply To:
Arthur Frank <[log in to unmask]>
Date:
Thu, 19 Dec 2002 09:57:37 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (45 lines)
Joe,

You need to create a file that has your ftp related commands, and specify this file when you run the ftp program, like so:

ftp -s:FTPCmds.txt

where FTPCmds.txt is a file with all of your ftp commands in it.  It could look something like this:

open hostname
FTPUSER/password.ACCT,GROUP
prompt
binary
mget *
bye

HTH,

Art Frank
Manager of Information Systems
OHSU Foundation
[log in to unmask] 
(503) 220-8320

>>> Joe Amuquandoh <[log in to unmask]> 12/19/02 09:45AM >>>
Hello members,

I have to ftp a file from a win2000 ftp server to  another 2000 server. From
the command prompt this works very well. Is there a way to automate the ftp
session using the statements I enter in the command prompt window in a .bat
or .cmd file or a scripting language is the only way?
I created a .cmd file with my statements but each time I run it, it executes
the open statement and prompts for the user-id and password (even though I
supply these in the .cmd file as I would do with ftp.arpa.sys)
I would appreciate an example if .bat or .cmd option is possible.

Thanks in advance.

Joe

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2