FILEMONKEY FAQ
Copyright MonkeyJob Systems 2005
All rights reserved

Home FAQ Forums Contact
Download Tutorials FAQ Awards Report Bugs
 Search For Data
   

Unzipping Multiple Zip Files

This tutorial will use the command line feature of FileMonkey with the unzip utility of WinZip to unzip multiple zip files in one go.

Prerequisites



You will need the latest version of WinZip installed on your machine. You can download and install this from:
Green Arrowwww.WinZip.com
You will also need the WinZip command line utility. You can download the installer from:
Green Arrowhttp://www.winzip.com/downcl.htm

Target Files



1.

Target your files. Click HERE for a targeting tutorial.

When targeting your files, you should use a target pattern of *.zip to target zip files.

If you want to work on zip archives that are in sub-folders, check (tick) the "Include Sub Folders" check box.

2.

Once you have targeted your files, select the "Quick-Find, Command Line" menu item from the main window.

3.

The Create/Run batch file window should now be open.

make batch jobs

4.

From the menu bar, select the "File / Load Code" menu item.

5.

This will open the load file dialogue box.

Use this box to navigate to the folder that FileMonkey is installed in (This is usually something like: C:\Program Files\FileMonk)

Select the file Unzip Files.FM and click the "Load" button.



unzipping files

6.

By default, the unzip script assumes that the WinZip unzip file is installed in

C:\Program Files\WinZip\wzunzip.exe

You will need to check that this file is present.

If this file is present then move on to step 7.

If wzunzip.exe is not in the C:\Program Files\WinZip folder, then you will need to change the following line in the head section of the script:

set unzipPath="C:\Program Files\WinZip\wzunzip.exe"

to show the location of the file wzunzip.exe. For example, if this file is in the windows folder then you will need to change the line to:

set unzipPath="C:\Windows\wzunzip.exe"

If you cannot find the file wzunzip.exe then you may not have installed the WinZip command line utility correctly and the following steps will not work.

7.

Example outcome for file "C:\New Folder\myfile.zip":

WinZip will create the folder: "C:\New Folder\myfile"

The contents of "myfile.zip" will be extracted to the folder: "C:\New Folder\myfile"

If you want to change how this works, click HERE for more information before moving to the next step otherwise, move on to the next step.

8.

To start the operation, select the "File / Compile And Run" menu item.

Related Topics:
FileMonkey Tutorials
Frequently Asked Questions
More UnZip Options
Using the command line append script to change file extensions
Using the command line feature to delete empty folders
Using the command line feature to back up files
Using the command line feature to move or copy files

  | About Us | Privacy Policy | Terms Of Use | Affiliates | Forums | Copyright ©2003 MonkeyJob Systems All Rights Reserved |