File monitor

Discuss RoboTask here
Post Reply
csdeepak
Posts: 1
Joined: Tue Oct 24, 2006 10:52 pm

File monitor

Post by csdeepak »

Whenever a new file is dropped in the particular directory, suppose a file size with 1GB and the filePath will be written to one text file.The filePath will be written to a text file when the file started copying(initialize stage only).so are there any way to write the filePath after the complete copy of the file.Can anyone help me out in achieving this.
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

File monitor

Post by Oleg »

Yes, the File Monitor trigger launches the corresponding task as soon as it detected the changes in the folder and it don't wait the finishing of file operations. But you can process this situation in the task body.
There are a few ways to do this:
- "Wait for file" action. This action waits when specified file will be fully accessible. While copying, the file is locked by system.
- {IsFileFree()} sustem variable. It returns "True" when the file is free or "False" otherwise. You may use this in "If...Then" action. Use the file name as parameter.
Last edited by Oleg on Thu Nov 30, 2006 11:40 am, edited 1 time in total.
Post Reply