File finished downloading?

Discuss RoboTask here
Post Reply
arold_ite
Posts: 6
Joined: Thu Mar 30, 2006 2:17 am

File finished downloading?

Post by arold_ite »

Hi, I run a task to download a file from the web.
I then have a another task, which performs an action on the downloaded file AFTER it has been downloaded.
If another version of the file exists already before the download, it is replaced.  But, how will the RoboTask file watcher know when the new version of the file has downloaded completely?
I don't know in advance how big the file will be.  I also don't know in advance how long it will take to download the file.
So, how can I tell the file watcher to take an action on this file when it has FINISHED downloading (i.e. I don't want the taks to take action on the file while it is stull downloading)
Thanks
Arold
Oleg
Site Admin
Posts: 3201
Joined: Thu Jan 01, 1970 1:00 am
Contact:

File finished downloading?

Post by Oleg »

You can check finish of file downloading by using "Wait for File" action. The action pauses the task and waits until the selected file will be available. After the monitored file is been available, the task is resumed. If the specified file is not opened in another process (or another task) at the moment when the action is due, the task is not paused.

Aslo see {IsFileFree()} system variable.
Post Reply