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 08-30-2007, 12:04 AM
zaguber zaguber is offline
Junior Member
 
Join Date: Jul 2007
Posts: 14
Default Each file command in a loop is not working

Hi ,

When i try the below script it is not working


1 Message Box: "$Newpath$"
2 Start Loop " Each File in $Newpath$"
3 Comment: Please enter your commands to loop. Use $filename$ variable for each file name in the Loop.
4 Message Box: "$FileName$"
5 End Loop

But when i try to run the same scripts with the modifications below its working fine.

1 Message Box: "$Newpath$"
2 Start Loop " Each File in C:\Documents and Settings\syedzaguberalis\Desktop\Test"
3 Comment: Please enter your commands to loop. Use $filename$ variable for each file name in the Loop.
4 Message Box: "$FileName$"
5 End Loop

I have to give the path dynamically , Kindly let me know if i had done any mistake int the above scipt

Thanks

Syed
Reply With Quote
  #2 (permalink)  
Old 08-30-2007, 03:00 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 465
Default Re: Each file command in a loop using variable

Hello Syed,

Using Automation Anywhere, you can prompt for a value when task runs. You can use ‘Prompt’ command for this. You can find this command under ‘Keystroke/Mouse’ Commands Categories on left. The value that you enter during the playback of the task can also be assigned to a variable. So you can use that variable at anywhere in the task. To insert Prompt command follow the steps given below:

1) Double click on Prompt command.
2) Select 'Don't Write In Any Window' from the drop down list.
3) Type in the message that you want to prompt the user with to get the path.
4) Assign the value that user enters to a variable by selecting the variable ($Newpath$) from the variable list.
5) When the task runs this variable will be assigned the value that user enters.

If you do not want to assign the value dynamically and want to fix it then:

1) Go to Tools->Variable Manager. Select your variable ($Newpath$) from the User Variables list and click on Edit button.

2) Assign value (path of the folder) to your variable in ‘Value’ textbox of Variable Editor and save the variable.

3) Click on ‘Ok’ button in Variable Manager window.

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 06:53 PM.


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