Call Toll Free: 1-888-484-3535    

  Automation Anywhere - The Automation Software

Sample Tasks -> T39 - Zip files that are more than 5 MB in size

Task Description: Copy all the files of a folder that are more than 5 MB in size to another location and zip all the copied files with the current date as the zip file name.

Solution
1.Create New Task Click on New -> Task Editor.
2.Copy all the files having size more than 5 MB From the Program/Files/Windows category, select Files/Folders command. In the Files/Folders wizard click on Copy File(s) option. Specify source & destination folder.

Copy Files "C:\MyFolder\*.*" to "C:\MyFolder\DocumentFiles\" if file size is at least 5120 KB

Click on the "Advance View >>" button and then click on size. From the list select atleast, and specify the size as in the KB textbox. Screenshot 1

e.g. for 5MB specify 5120 KB for 1MB specify 1024 KB

3.Zip all the files from a folder From the Program/Files/Windows category, select Files/Folders command and select Zip File(s) option. Specify the path from were you want to zip all the files, also, specify the destination zip file name along with the path. To specify today's date as filename, press F2 for the list of variables. Select Day variable, again press F2 and select Month variable, and again press F2 and select Year variable, and at the end specify ".zip" as the extension. Screenshot 2

Zip file(s) from "C:\MyFolder\DocumentFiles\" into file "C:\MyFolder\DocumentFiles\$Day$_$Month$_$Year$.zip"

 
When you run this task, it copies all the files that have size more than 5 MB, zip's the copied files with the current date as the file name.

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
 Workspace Macro Pro
 Workspace Macro
 Launch-n-Go
 Free Downloads
 Compare Products
 

 SOLUTIONS FOR

 Home & Home Office
 Business & IT
 Partners
 Developers
 

 SERVICES

 Ask The Expert
 Consulting Service
 

 PURCHASE

 BUY NOW
 Pricing
 Upgrades
 Our Guarantee

 SUPPORT

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

 QUICK LINKS

 Productivity Essentials
 Pre-defined Templates
 

 GENERAL

 Tell A Friend, Win a CD
 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