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. |