Intelligent Automation & Macro Software  

Go Back   Tethys Solutions Forums > Products Zone > Automation Anywhere
Register FAQ Search Today's Posts Mark Forums Read

Automation Anywhere Post messages and questions related to Automation Software here.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-05-2008, 05:33 AM
belias21 belias21 is offline
Junior Member
 
Join Date: May 2008
Posts: 1
Default Trigger using variable file names

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!
Reply With Quote
  #2 (permalink)  
Old 05-05-2008, 10:33 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 421
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
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 03:16 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2008 Tethys Solutions, LLC. All rights reserved