# About Wait For File + Variable

**URL:** https://www.finalbuilder.com/forums/t/about-wait-for-file-variable/4439
**Category:** Discussion
**Created:** [June 15, 2010, 12:37pm UTC](https://www.finalbuilder.com/forums/t/about-wait-for-file-variable/4439 "2010-06-15T12:37:35Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![clientys](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/a87d85/32.png) [@clientys](https://www.finalbuilder.com/forums/u/clientys)
#### Post date: [June 15, 2010, 12:37pm UTC](https://www.finalbuilder.com/forums/t/about-wait-for-file-variable/4439/1 "2010-06-15T12:37:35Z")

</div>

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.&nbsp; 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

---

<div class="post-metadata">

### Author: ![paulsamways](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@paulsamways](https://www.finalbuilder.com/forums/u/paulsamways)
#### Post date: [June 21, 2010, 1:31am UTC](https://www.finalbuilder.com/forums/t/about-wait-for-file-variable/4439/2 "2010-06-21T01:31:32Z")

</div>

&nbsp;Hi&nbsp;[Antoine](https://www.finalbuilder.com/forums.aspx?afv=profile&uid=9614),

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)

---

<div class="post-metadata">

### Author: ![clientys](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/a87d85/32.png) [@clientys](https://www.finalbuilder.com/forums/u/clientys)
#### Post date: [June 23, 2010, 1:41am UTC](https://www.finalbuilder.com/forums/t/about-wait-for-file-variable/4439/3 "2010-06-23T01:41:42Z")

</div>

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
