Batch file to Get New Files Only through FTP

Hi there

I want to create a batch file which Get (mget) the newly added Files only from specific directory on UNIX server to specific folder on windows server using FTP, and this batch file will be scheduled on the windows server to run daily to load the new files (load the newly added files from the unix directory to the windows folder).
Urgent help plz

I have reached the following

1- The following is the batch file it contains the following:

ftp -n -s:ftp_import.txt 10.32.253.73
exit

2- The following is the text file which has the name "ftp_import.txt". it contains the following:

user <unix username>
<unix password>
lcd D:\(The path of source, where to get the files from unix server)
cd /home/The path of destination, where to put the files to windows server)
prompt
mget *.CSV
bye

Everything is running well

But still I want to modify this batch to get only the newly added CSV files, not all the files (*.CSV). this is now my only problem.

A variation on the approach I use may meet your needs. The first call to FTP needs to do a DIR and save the result to the local disk. The script then parses that file to identifiy what files are new. The second call to FTP downloads specific files that were identified as new. I tend to do this sort of stuff with PERL instead of a batch file. Much better control that way.