Volkmaniac
Technical User
Is there anyway I can use a file filter for ProComm's ftp? I want to upload every file that's in the remote directory to the local. Each of those files has an input mask of ARS-N*. How would I need it to either upload every file in the directory or upload all the files that begin with ARS-N*
Here is the script I took from aspect:
proc main
FTP LOCAL CHDIR "S:\Client Services\LETTERS\" ;Set the local dir. to S:\Client Services\LETTERS\.
Connect FTP "RS6000" ;Connect to our FTP site.
while $ftpstatus ;Loop while connecting to FTP site.
yield
endwhile
pause 1 ;Let Procomm update its screen.
FTP REMOTE CHDIR "/tmp/ars/letters/" ;Change dir on FTP site.
pause 1
FTP REMOTE COPYFILE "*" ;Copy (download) * from FTP
;site to local machine. Filenames
;are case-sensitive!
while $ftpstatus ;Yield while transferring file.
yield
endwhile
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 "*" ;Copy (upload) file to FTP site.
while $ftpstatus ;Yield while transferring file.
yield
endwhile
disconnect
endproc
Here is the script I took from aspect:
proc main
FTP LOCAL CHDIR "S:\Client Services\LETTERS\" ;Set the local dir. to S:\Client Services\LETTERS\.
Connect FTP "RS6000" ;Connect to our FTP site.
while $ftpstatus ;Loop while connecting to FTP site.
yield
endwhile
pause 1 ;Let Procomm update its screen.
FTP REMOTE CHDIR "/tmp/ars/letters/" ;Change dir on FTP site.
pause 1
FTP REMOTE COPYFILE "*" ;Copy (download) * from FTP
;site to local machine. Filenames
;are case-sensitive!
while $ftpstatus ;Yield while transferring file.
yield
endwhile
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 "*" ;Copy (upload) file to FTP site.
while $ftpstatus ;Yield while transferring file.
yield
endwhile
disconnect
endproc