Thanks for your quick response. Before I try this out I have another question about the file name to download;
I know the YYYYNNN part of the file but I don't know the sequence number (xxxxxxx). The will be only ONE file that starts with a specifc YYYYNNN (e.g. 2009148xxxxxxx). Does the get command accept wild cards? Can I do for instance;
get %SenderId%APRF YYYYNNN.*
Thanks.
Main Topics
Browse All Topics





by: renazonsePosted on 2009-05-28 at 12:56:44ID: 24497256
Create a text file named download.ftp with these contents:
username
password
binary
get %SenderId%APRF YYYYNNNxxxxxxx
quit
Create a another text file called download.bat:
@echo off
if exist "%SenderId%APRF YYYYNNNxxxxxxx" (
goto EXIT
) else (
goto DOWNLOAD
)
::DOWNLOAD
FTP -s:download.ftp hostname.com
::EXIT
exit
Create a scheduled task to run the script...the syntax may not work perfectly for the .ftp file if it's not a Microsoft FTP but there's a workaround.