Command Line Usage

Top  Previous 

 

CAM UnZip includes a built-in command line interface that allows you to create and extract ZIP files from the command line.  The command line syntax is as follows.

 

 

For extracting files from an existing ZIP file:

 

CUZ [-flags] [-p:password] zipfile extactfolder

 

zipfile is the name of the ZIP file you want to extract all files from

extractfolder is the folder where the extracted file will be placed

password is the password needed to extract files in ZIP file

 

flags must a combination of zero or more of the following:

 

o - Turn on the Overwrite Existing Files option

c - Turn on the  Re-Create Folders option

s - Turn on the Run Setup option

 

NOTES:

 

If you specify no flags and no password omit the - completely. In this case the default or saved options are used.
If you specify a password and no flags include the first - followed by a space. In this case no options will be set and the default or saved options are not used.  If you want to set an option, specify it.  See the example below.

 

 

For adding files to an existing ZIP file or creating a new ZIP file:

 

CUZ -a[flags] [-p:password] zipfile filestoadd1 filestoadd2 ...

 

zipfile is the name of the ZIP file you want to add to or create. Alternatively you can specify <> and the first file/folder will be used as a base for the ZIP filename.

 

filestoadd... is one or more files/folders (wildcards can be used) to add to the ZIP file.

 

password is the password used to encrypt file sin the ZIP file.

 

flags must a combination of zero or more of the following:

 

d - Turn on the Save Folder Names option

f - Turn on the Force Full Paths option

r - Turn on the  Include Sub-Folders option

e - Turn on the Encrypt Files with Password option

 

Other flags

 

n - No Execution.  Specify this flag to start CAM UnZip with the specified command line evaluated but do not carry out the action automatically.

q - Quiet Operation.  This flag hides the main window and progress screen.  This flag cannot be used with the n flag above.

 

w:xxxx - Millisecond wait time between operations.  You must specify exactly 4 digits (i.e. w:0010).

p:password - Password

 


Examples:

 

CUZ c:\test.zip c:\testzipout

 

This command extracts the contents of c:\test.zip into c:\testzipout using the default options set in the program.  Because the q flag is not specified the user interface is shown.

 

CUZ - -p:testpass c:\test.zip c:\testzipout

 

This command extracts the contents of c:\test.zip into c:\testzipout.  Because the q flag is not specified the user interface is shown.  It uses testpass to decrypt the files in the ZIP file (Note the single - followed by a space, which is required if no flags are specified, but a password is).

 

CUZ -qocs c:\test.zip c:\testzipout

 

This command extracts the c:\test.zip file into the c:\testzipout folder, overwriting existing files if they exist (o flag), re-creating an subfolders needed (c flag), then runs setup.exe if present (s flag).  It does all this without showing the user interface (q flag).

 

CUZ -aq c:\test.zip *.*

 

This command adds all files in the current folder to c:\test.zip without showing any user interface.

 

CUZ -adren c:\test.zip *.txt *.rtf

 

This command starts CAM UnZip configured to add all TXT and RTF files in the current folder and all subfolders (r flag) to the c:\test.zip ZIP archive.  It turns on the Save Folder Names (d flag), Include Sub-Folders (r flag) and Encrypt Files with Password (e flag).  Because the n flag is specified the action is not carried out until the user clicks the Add button.

 

CUZ -aeq -p:testpass c:\test.zip *.*

 

This command adds all files in the current folder to c:\test.zip without showing any user interface. It uses testpass to encrypt them in the ZIP file.

 

CUZ -adre <>  (Prompt for password)

 

CUZ -adreq -p:testpass <>   (No prompt using specified password)

 

These commands can be useful when adding a shortcut in the Send To menu, allowing you to right click on files and folders in Windows Explorer and add them to a encrypted ZIP file using CAM UnZip  It works just like the Send To... Compressed Folder option in Windows, but supports password protection.

 

 




This page is part of the user manual for CAM UnZip, a free, easy to use ZIP software utility from CAM Development