![]() |
| |||||||
Automation Anywhere Post messages and questions related to Automation Software here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| Hello all, I'm trying to figure out how to use a wildcard in a file trigger (can't use a folder trigger because there are other files in the directory). I am simply looking for the existence of a file that always starts with the same few letters but ends differently. I have tried using a wildcard but have had no luck. Is this possible? Thanks in advance! |
| |||
| Hello, Unfortunately, trigger does not support wild cards. However, for the existence of a file that always starts with the same few letters but ends differently what you can try is, use 'Loop While File Does Not Exists' command in your task, which supports wild card. Text format of your task would look something like this, 1) Loop While File Does Not Exists("C:\temp\New*.*") 2) Delay: (1000 ms) 3) End Loop 4) Message Box: "Now File Exist." 5) //Commands as per your requirement This task will look for a file that starts with 'New' but it can have any number of characters after that, under C:\Temp folder. If file does not exist, it will wait for 1 second and will again search for it. This process goes on until it finds 'New*.*' file. As soon as the file comes into existence, it will exit from loop and will execute commands after End Loop. Hope that helps. |