Automation SoftwareAutomation Anywhere
  Home > Product > Solutions > T28  

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.

Test File T28.atmn

Note: Save the .atmn file in My Documents -> Automation Anywhere -> Automation Anywhere -> My Tasks

Solutions
1 Create new task

Click on New -> Task Editor.
Task Editor
Screenshot 1

Task Editor
Screenshot 2
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.
3 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.
Buy Now Free Trial

Next Steps
Compare versions Compare versions
Watch a flash demo Watch a flash demo
Contact me Contact me
Ask the Expert Ask the Expert
Request live demo Request live demo

Call 1-888-484-3535

Our Customers
Automation Anywhere Customers
Customer list | Case Studies

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 >>
  Products     Download     Purchase     Services     Support     Customers     Company     Sitemap     Trademark FacebookTwitterAutomation Anywhere Blog © Automation Anywhere, Inc. 2012 Privacy Policy
Automation Anywhere Call: 1-888-484-3535 x1