Wait for file

I created a task that would wait for a file and then do some action. The situation is that I need to zip a file as soon as it is downloaded by me from some a site. But when the file gets downloaded this task doesn’t fire. Any help?

Hi Vikas,

So the task is just running and the action never completes? What program are you using to download the file? Do you have the complete path to the file set in the Wait For File action? Are you “waiting for exists” or something else?

Thanks.

Regards,

Angus

This is what I have done:
1. Created the task.
2. I am downloading files from a site that givesme stock information. I have mentioned the path of the file in the task.
3. As soon as the file is downloaded, I want it to b zipped and moved to some other folder.

Thw Wait for file method is not detecting this file when it gets downloaded on desktop despite the fact that the correct path of this file has been mentioned “Wait for file”. Am I doing anything wrong?

Hi Vikas,

So the action is “Running” at the time the file is downloaded? What options do you have set on the Wait For File?

- Angus

I am attaching two sample shots. When place this text file on desktop, I should get a message. But the task is not flashing the message when the file gets placed on the desktop.

Snap1.jpg

Hi Vikas,

Thanks for posting the screenshots. I just wrote a test project and downloaded a file with IE, and it seems to work OK here with Automise 2. Can I ask some more questions:

1) Which version are you using?

2) Just to be sure, you are Running the project before you download the file, right? Wait For file is not a trigger, it just provides a way to pause an already running build process until something happens.

3) What program are you using to download the file?

4) Did you know that Automise has an ‘HTTP Get File’ action which may be able to download the file for you.

Regards,

Angus

  1. I am using ver 2.0.0.74
    2. I think this point answers the question. I thought it was a trigger like the one we have in RoboTask. RoboTask has File Monitor trigger that keep monitoring the files or type of files that we specify and runs the task as soon as the file is placed in desktop.
    3. I will not b using this procedure only for downloaded files. It may be files that are copied on desktop.
    4. Yes, I know that :slight_smile:

Hi Vikas,

Thanks for replying. Hopefully you have enough information to get it all working now. If you want the process to constantly monitor for the file, then you’ll need to run it in the background (possibly from the Scheduler using ATCMD) and maybe place the “Wait For File” action (and its children) inside a While loop.

Regards,

Angus

Thanks for the support.