1.

Solve : Batch file to copy from ftp site?

Answer»

hello, I have been working on a batch file with no SUCCESS, i was WONDERING if you guys could help me out. I am trying to COPY files from a ftp to a local drive. There are going to be about 1500 files on this ftp site so when it copies the file i want it to only download the new files and skip over the older files.

I have searched the internet high and low for examples but i haven't found any. I have seen programs that do this for me but I do not want to purchase it.

could someone please help me out?I SEE people viewing this topic, but no one is helping. Can someone please help me out?Quote from: burchill on October 11, 2007, 02:19:40 PM

...

I have searched the internet high and low for examples but i haven't found any. I have seen programs that do this for me but I do not want to purchase it.

Name them. Provide links, if possible.
Maybe that will remind somebody else of something that you somehow did not find.

Quote
could someone please help me out?

I'm one of those that has read your thread a couple times now. I'm just curious to see what the answer is myself. That could explain why others are reading it too.

If you discover how to accomplish your goal elsewhere, please do POST the solution here for all to read.

Quote from: burchill on October 11, 2007, 02:19:40 PM
hello, I have been working on a batch file with no success, i was wondering if you guys could help me out. I am trying to copy files from a ftp to a local drive. There are going to be about 1500 files on this ftp site so when it copies the file i want it to only download the new files and skip over the older files.

I have searched the internet high and low for examples but i haven't found any. I have seen programs that do this for me but I do not want to purchase it.

could someone please help me out?
Do you have a list of "old" files on your local machine?
windows(DOS) FTP client has no commands to help you determine which file is old or new. anyway, here's a thought
1) log into FTP server
2) get a directory listing of all files in FTP server, then output to a file A.txt
3) depending on what methods you defined for calculating newer files, you can compare timestamps . ie perform date comparisons on your local machine against A.txt
4) From step 3), get the results of those newer files?
5) create FTP script on the fly, for each newer files found in 4)
6) execute FTP script for each newer files found

I


Discussion

No Comment Found