Hi Joe
Here is a little windows command script that will do what you want, I
hope.
Put the lines into a file with a .cmd or .bat extension with notepad,
edit the hp3000 name, passwords, username and account etc, place it on
your desktop, and drag a file onto it.
Have fun.
Regards
Neil
cut here-------------------
rem putfile.cmd to ftp a file from Windows to HP3000
rem either drag and drop the file onto this command file
rem or run it, passing the file name as first parameter
rem the destination file will always be ntfile, but obviously this can
be changed
echo manager.sys > ftpin
echo userpass,accountpass >> ftpin
echo ascii >> ftpin
echo hash >> ftpin
echo put %1 ntfile;rec=-1024,1,f,ascii;disc=1000000 >> ftpin
echo quit >> ftpin
ftp -s:ftpin hp3000name_or_ip_address
pause
cut here----------------
-----Original Message-----
From: Joe Amuquandoh [mailto:[log in to unmask]]
Sent: 19 December 2002 07:46 PM
To: [log in to unmask]
Subject: ftp scripting
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 *
|