How to Set Up a Job to Automatically Zip Files in a Folder Based on a Scheduled Task
- 1). Download a command-line add-on tool such as 7-Zip, IZArc, or WinZip (see links in Resources).
- 2). Save the file to your computer.
- 3). Navigate to the location where you just saved file you downloaded.
- 4). Double click on the add-on installer. Follow the wizard's prompts to install the tool. The 7-Zip download is a zipped folder. To install this add-on, right click on the file and select "Extract All" from the shortcut menu. Follow the wizard's prompts.
- 1). Click "Start," point to "All Programs," point to "Accessories," click "Notepad" to open Microsoft Notepad.
- 2). Type "@echo off" on the first line.
- 3). Press "Enter" to jump to the second line. Type the appropriate command for the command-line add-on tool you're using:
For 7-Zip, type: 7za a -tzip "<enter the archive folder name>" "<enter the source file / folder-name>"
For IZArc, type: izarcc -a -cx "<enter the archive folder name>" "<enter the source file / folder-name>"
For WinZip, type: wzzip "<enter the archive folder name>" "<enter the source file / folder-name>" - 4). Go to the "File" menu and select "Save As." Type "Zip.bat" in the "File name" box.
- 5). Select the directory where you want this new BAT file to be saved (by opening the "Save in" drop-down menu and navigating to the directory). Click "Save."
- 1). Click "Start," select "Control Panel," double click "Scheduled Tasks." Or (if you're using the classic Start menu) click "Start," point to "Settings," select "Control Panel," double click "Scheduled Tasks" to open the Scheduled Task utility.
- 2). Double click "Add Scheduled Task" to launch the Scheduled Task wizard. Click "Next" at the first prompt.
- 3). Click "Browse," then navigate to the location where you just saved the "Zip.bat" file. Select the "Zip.bat" file, then click "Open."
- 4). Follow the wizard's remaining prompts.
- 1). Open the Start Menu, click "Control Panel," click "System and Security," click "Administrative Tools" and double click "Task Scheduler."
- 2). Go to the "Action" menu and select "Create Basic Task."
- 3). Follow the wizard's prompts to begin setting up your scheduled task. When prompted to select "What action do you want the task to perform," select "Start a program." Then browse to select the e "Zip.bat" file you just created. Follow the wizard's remaining prompts.
Install Command Line Add-On
Create Batch File
Set Up Scheduled Task in XP
Set Up Scheduled Task in Windows 7
Source...