Call Toll Free: 1-888-484-3535    

  Automation Anywhere - The Automation Software

Sample Tasks -> 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

 

Solution
1.Create new task Click on New -> Task Editor.
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$ Screenshot 1
 
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.

Screenshot 1:

Screenshot 2:

 

E-Mail: Enter your email address to receive information about new products & offers from Tethys Solutions.


 PRODUCTS

 Automation Anywhere
   Standard & Premier
   Enterprise
   Integration Pack
 Workspace Macro Pro
 Workspace Macro
 Launch-n-Go
 Free Downloads
 Compare Products
 

 SERVICES

 Ask The Expert
 Consulting Service
 

 PURCHASE

 BUY NOW
 Pricing
 Upgrades
 Our Guarantee

 CUSTOMERS

 Customer List
 Case Studies
 Testimonies

 SUPPORT

 FAQ & Examples
 Have a Question?
 Open A Support Case
 Forums
 

 QUICK LINKS

 Productivity Essentials
 Developers
 

 GENERAL

 Partners
 Affiliates
 Articles: Macro &
 Automation

 Get RSS Feeds

 Press & News
 Contact Us
Home |Site Map |Privacy Policy |About Us |Contact Us

Copyright © 2003-2008 Tethys Solutions, LLC. All rights reserved. Trademarks