Script to download only the files with different time stamps,

Advertisement

ejecthunter
Joined:
Posts:
1

Script to download only the files with different time stamps,

Hi,
i have created a script which is supposed to download all the files from remote site,
and then when the batch is run once again, it is supposed to compare the files and only download the files with the latest timestamp.
Here is my script:
synchronize local D:\Reports\OL\ /
#Download only most updated
get -filemask="*>=1D" *
exit
so basically it should compare and delete the files with same name and replace them with the new ones with new timestamp.

EDIT: My test showed that the files are being redownloaded everytime i run the script.

It this correct? thanks for your help.

rgds

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,567
Location:
Prague, Czechia

Re: Script to download only the files with different time stamps,

I do not understand your script. Are you aware that the synchronize command not only compares, but also transfers the modified files? Why are you doing the synchronize local and then get? Can you explain? Is this by purpose or by mistake? Typically you would use only one of them.

Reply with quote

Advertisement

You can post new topics in this forum