View Single Post
  #2 (permalink)  
Old 05-05-2008, 10:33 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 474
Default

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.
Reply With Quote