T28 - Call VBScripts/JScripts from Automation Anywhere. |
Task Description |
Loops through all the files of a folder and pass each filename as parameter to a VBScript and assigns the return value to a variable.
T28.atmn
Note: Save the .atmn file in My Documents -> Automation Anywhere -> Automation Anywhere -> My Tasks
|
| Solutions |
 |
Create new task
Click on New -> Task Editor. |

Screenshot 1

Screenshot 2 |
 |
Loop through all the files.
- Select 'Loop for each file in a folder' command from Loop command
- Specify the path of the folder from where you want to pass all the files as a parameter to the VBScript.
|
 |
Call VBScript within the Loop
- Call VBScript within the Loop and pass the following System variables as a parameter to the script and assigns a return value to the variable.
- Parameter: $CurrentDirectory$\$FileName$.$Extension$
- Return: $vb_return$
|
|
| When you run this task, it loops through all the files of a folder and passes every file as a parameter to the VBScript and assigns a return value to the variable and shows a prompt message. |
|
 |
| We started using this product to copy data from legacy system to new system. Now we use it just to do about anything automated. Countless hours saved. Thank you guys. |
- Jack Greenberg
|
| Read Customer Testimonies >> |
|