How to Use WinZip in a Mainframe
WinZip is developed and maintained by WinZip Computing, which is part of Corel. WinZip is a well-known Windows zip utility used to compress, encrypt, share and backup files. Although WinZip has a nice graphical user interface, it can be used from a mainframe command line. However, this feature is not available by default; you need to install an add on. Furthermore, you need to have a licensed copy of WinZip and at least version 12.1.
Instructions
-
-
1
Open your Web browser and navigate to the WinZip command-line add-on page (see Resources). Click on the "Download Now" button at the bottom of the page and click on the "Download" button on the next page. Save the "wzcline32.exe" file on your hard drive.
-
2
Double-click on the "wzcline32.exe" file you just downloaded and follow the instructions you see on your screen to install the command line add on. Three important files appear in the "WinZip" folder: WZCLINE.HLP, WZZIP.EXE and WZUNZIP.EXE.
-
-
3
Go to the "Start" menu and click on "Computer" to start the file browser. Navigate to the "WinZip" folder (where you installed WinZip), select the "WZCLINE.HLP," "WZZIP.EXE" and "WZUNZIP.EXE" files and press "Ctrl-C" to copy them to the clipboard.
-
4
Navigate to the "C:\Windows\System32" and press "Ctrl-V" to paste the files from the clipboard. This enables you to run a WinZip command from the mainframe command line without having to point it to the location of the files.
-
5
Open the mainframe command line and type the following:
wzzip -a output_zip "file" "file"
Replace "output_zip" with the path and name of the zip file you want to create and "file" with the path and name of the files or files (separate each by a space) that you want to add to the Zip file. Press "Enter" to run the command. Here is a simple example that adds three files from the "D:\Files" folder to the "TestZIP.zip" archive in the "C:\Temp" folder:
wzzip -a "C:\Temp\TestZIP.zip" "D:\Files\File1.txt" "D:\Files\File2.jpg" "D:\Files\File3.exe"
-
6
Type this to unzip a Zip archive:
wzunzip target_zip target_folder
Replace "target_zip" with the path and name of the ZIP file you want to extract the files from and "target_folder" with the path to the folder where you want to extract them. Press "Enter" to run the command. Here is a simple example that extracts the previously created archive back in the "D:\Files" folder:
wzunzip "C:\Temp\TestZIP.zip" "D:\Files\"
-
1
Tips & Warnings
Always enclose paths in double quotes to avoid errors.
References
Resources
- Photo Credit Jochen Sand/Digital Vision/Getty Images