Call Toll Free: 1-888-484-3535    

  Automation Anywhere - The Automation Software

Sample Tasks -> T24 - Automate File Management. Organize Folders based on File Extension.

Task Description: Organizes folders by moving files into respective folders based on the file extension.

Solution
1.Create new task Click on Tools->Task Editor.
2.Go through all the files Insert Loop command to loop through each file in a folder command.
3.Create the folders based on the extensions
  • Insert IF command by selecting it from Conditions / Loops category.
  • Select 'Folder does not exist' condition
  • Specify the variables $CurrentDirectory$\$Extension$FileCollection

Screenshot 1

4.Move the files to the respective folder Copy files command will copy current file in loop to the folder of its respective type. For example if file name is C:\AutomationAnywhere.txt then it will copy the file to txtFilecollection folder created in above step. Screenshot 2
5Delete the copied files Insert a Delete File command to delete the files to avoid duplicate copies. Screenshot 3
 
When you run this task, it loops through each file in a folder and will create folders for each of the different extension types and moves the files within the respective folders.

Screenshot 1:

Screenshot 2:

Screenshot 3:

 

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