Page 1 of 1
File monitor
Posted: Thu Nov 30, 2006 12:24 am
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.
File monitor
Posted: Thu Nov 30, 2006 7:38 am
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.