The following example came from the symantec web site at:
This document contains some very useful aspect ftp commands.
---------------------------------------------
How to Use the FTP Command in ASPECT
Details:
The following example covers just about everything you can do with the FTP command. Unfortunately the ASPECT on-line help system does not have examples of the FTP commands. However, the following should do the trick. Note: Keep an eye out for filenames. In FTP commands they are case-sensitive.
;FTP.WAS ASPECT Script for Procomm Plus 4.x
;Example script with FTP commands.
proc main
FTP LOCAL CHDIR "C:\test\" ;Set the local dir. to C:\test\.
Connect FTP "Quarterdeck" ;Connect to Quarterdecks FTP site.
while $ftpstatus ;Loop while connecting to FTP site.
yield
endwhile
pause 1 ;Let Procomm update its screen.
FTP REMOTE CHDIR "/pub/procomm-windows/us/ver-4/" ;Change dir on FTP site.
pause 1
FTP REMOTE COPYFILE "pw4mdm.lst" ;Copy (download) pw4mdm.lst from FTP
;site to local machine. Filenames
;are case-sensitive!
while $ftpstatus ;Yield while transferring file.
yield
endwhile
FTP LOCAL RENAME "pw4mdm.lst" "new.lst" ;Rename the local filename.
pause 1 ;Let Procomm update its screen.
FTP REMOTE CHDIR "/upload/" ;Change dir on FTP site to /upload/.
pause 1 ;Let Procomm update its screen.
FTP LOCAL COPYFILE "new.lst" ;Copy (upload) file to FTP site.
while $ftpstatus ;Yield while transferring file.
yield
endwhile
disconnect
endproc
------------------------------------
Hope this helps.
Matt