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.
DSWaitForFile with '*'
Moderators: chulett, rschirm, roy
DSWaitForFile with '*'
Guillermo P. Barsky
Buenos Aires - Argentina
Buenos Aires - Argentina
<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.
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.
Last edited by chulett on Fri Oct 13, 2006 3:27 pm, edited 1 time in total.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
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.
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.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.