Gary,
You could do this quite simply by 'echoing' out your commands to a temporary file and then using this temporary file as an input to ftp:
e.g.
setvar dirdate,19990908
echo [logon stuff] > temp
echo mkdir !dirdate >> temp
echo [all the rest] >> temp
ftp.arpa.sys < temp
Michael.
>>> Gary Pastor <[log in to unmask]> 07 September 1999 09:35:00 >>>
Is it possible to use hp variables or defined variables in ftp.
I need to ftp certain files to an NT server, but I need to create the
directory the files are to be ftp'd into. The directory name will be a date.
e.g. 19990908. I can build the directory name in my jobstream and save as a
variable. I then try to use the variable in ftp, using the 'mkdir' command
with the variable name. i.e. mkdir !dirdate. This does not work, as it just
creates a directory called !dirdate on the NT server.
How can I work around this?
Thanks
Gary Pastor