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:

|