Page 1 of 1

Compare Files

Posted: Wed May 03, 2006 5:29 am
by greg_seven
How can I compare a file size on the internet with a file size locally?
so...
if netfile is not equal to local file then download new file from the internet
Thanks

Compare Files

Posted: Wed May 03, 2006 5:54 am
by Oleg
Now you can retrieve file size only from FTP servers. See "FTP File Loop" action. You can specify file mask or full file name and retrieve the file size and file date into user variable for each file within loop.
It will be one file if you specify the full name of file in loop.

Compare Files

Posted: Wed May 03, 2006 5:59 am
by greg_seven
Thanks for the reply,
unfortunately the file is on a http server and not accessible via ftp.
The problem i have is sometimes the whole file is not downloaded (excel file) and i need to check that the file is valid and complete before importing the data
any ideas?

Compare Files

Posted: Wed May 03, 2006 6:10 am
by Oleg
If this file is not very large, you can download it every time when it's needed and save under another name. Next you can compare it with existing file and do something else.

Compare Files

Posted: Wed May 03, 2006 6:11 am
by greg_seven
good idea, thanks