Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LIST BOX -- WIN ZIP
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00243165
Message ID:
00243239
Views:
19
>I have a List Box that contains a list of zip files. On the double-click event I want to unzip a file using WinZip.

Go to the WinZip site and you can see the next information


What command line parameters does WinZip support?
Below is some information about the undocumented command line options in WinZip winzip[32].exe module.

The pre-release beta test WinZip Command Line Support Add-On provides comprehensive support for zipping and unzipping. For more information, please see the WinZip Command Line Support Add-On Information Page. Note that WinZip 7.0 for Windows 95/98/NT is a pre-requisite for this feature. Also note that not all the commands and switches available in the WinZip Command Line Support Add-On are available for the winzip[32].exe command line, and even if the same switches are available in each interface, they may function differently.

WinZip supports command line options to add and extract from files. Be sure to read the Notes section below for important restrictions.

Adding Files
The command format is:

winzip[32].exe [-min] action [options] filename[.zip] files
where:
-min specifies that WinZip should run minimized. If -min is specified, it must be the first command line parameter.

action
-a for add, -f for freshen, -u for update, and -m for move. These actions correspond to the actions described in the section titled "Adding files to an Archive" in the online manual.

options
-r and -p correspond to the "Recurse Directories" and "Save Extra Directory Info" checkboxes in the Add and Drop dialog boxes. -ex, -en, -ef, -es, and -e0 options determine the compression method: eXtra, Normal, Fast, Super fast, and no compression. The default is "Normal". -hs includes hidden and system files. Use -sPassword to specify a case-sensitive password. The password can be enclosed in quotes, for example, -s"Secret Password".

filename.zip
Specifies the name of the Zip file involved. Be sure to use the full filename (including the directory).

files
Is a list of one or more files, or the @ character followed by the filename containing a list of files to add, one filename per line. Wildcards (e.g. *.bak) are allowed.

Extracting Files
The command format is:

winzip[32].exe -e [options] filename[.zip] directory
where:
-e
Is required.

options
-o and -j stand for "Overwrite existing files without prompting" and "Junk pathnames", respectively. Unless -j is specified, directory information is used. Use -sPassword to specify a case-sensitive password. The password can be enclosed in quotes, for example, -s"Secret Password".

filename.zip
Specifies the name of the Zip file involved. Be sure to specify the full filename (including the directory).

directory
Is the name of the directory to which the files are extracted. If the directory does not exist it is created.


Notes
VERY IMPORTANT: Always specify complete filenames, including the full path name and drive letter, for all file IDs.

To run WinZip in a minimized inactive icon use the "-min" option. When specified this option must be the first option.

Only operations involving the built-in zip and unzip are supported.

Enclose long filenames in quotes.

When using a list ("@") file, no leading or trailing spaces should appear in file IDs in the list.

The action and each option must be separated by at least one space.

WinZip can be used to compress files with cc:Mail . Change the compress= line in the [cc:Mail] section of the appropriate WMAIL.INI files to specify the full path for WinZip followed by "-a %1 @%2". For example, if WinZip is installed in your c:\winzip directory, specify
compress=c:\winzip\winzip.exe -a %1 @%2
Return to Frequently Asked Questions
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform