Page 1 of 1

DSWaitForFile with '*'

Posted: Fri Oct 13, 2006 9:46 am
by gpbarsky
Hola mis amigos.....

I'm trying to execute a DSWaitForFile with something like *.TXT as parameter to the function.

Is this possible ? Is there any special hint to take into account to have this working ?

Thanks in advance.
:wink:

Posted: Fri Oct 13, 2006 10:48 am
by chulett
Not possible, the stage does not support wildcards.

Posted: Fri Oct 13, 2006 10:49 am
by chulett
<duplicate post cleared>

Dang site is acting up for me today. Push the button once, wait forever and then get two posts for the price of one. Sheesh. :?

Posted: Fri Oct 13, 2006 3:22 pm
by ray.wurlod
As Craig says (says), the Wait For File activity does not support wildcards. However, such a routine would be easy to write, and could be invoked from a Routine activity.

In a loop, execute an operating system command to list whatever the wildcard refers to, and to return if the number of items listed is more than zero. Include a short SLEEP (or a NAP) in the loop so that the routine does not become a CPU hog, and handle the timeout sensibly.