Compare Files

Discuss RoboTask here
Post Reply
greg_seven
Posts: 3
Joined: Wed May 03, 2006 5:27 am

Compare Files

Post 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
Oleg
Site Admin
Posts: 3201
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Compare Files

Post 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.
greg_seven
Posts: 3
Joined: Wed May 03, 2006 5:27 am

Compare Files

Post 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?
Oleg
Site Admin
Posts: 3201
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Compare Files

Post 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.
greg_seven
Posts: 3
Joined: Wed May 03, 2006 5:27 am

Compare Files

Post by greg_seven »

good idea, thanks
Post Reply