About Wait For File + Variable

Hello everybody,

I actually work on a new project in Automise 3.

A customer send me a file via FTP. The name of this file is : testXXXXXX.zip . Unfortunely, X are randoms characters. I need to wait for this file before launch others programs.

So i use the fonction : "Wait For file" and i configure the "File to Wait on" with : test*.zip. After tests, the method doestn't work. I tried with the real name and it's ok.  So i would like to know what is the joker character for this function.

it's strange because when i test this with the function "copy file" and selecting test*.zip, it's ok.

So i began to think about another solution. For example, with the while loop. But i think it's harder than the fonction "Wait for file" and i don't understand how this loop work.

Anyone have an idea for the variable ?

Thank for your help. best regards,

FP

 Hi Antoine,

I've attached an example Automise project which will hopefully help you get started, it simply defines a FileSet that matches the archives that you're waiting for and loops until one is found. Let us know if you need any further help. (2.65 KB)

Hi,

It’s perfect i think i could resolve my problem with your project. The while is perfect in my case.

Thank for all,

Regards,
Antoine