![]() |
| |||||||
Automation Anywhere Post messages and questions related to Automation Software here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
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 |
| |||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | |
| |