PKZIP 6.0 Command Line User's Manual - CacheFly

2y ago
12 Views
2 Downloads
706.11 KB
187 Pages
Last View : 2m ago
Last Download : 3m ago
Upload by : Sabrina Baez
Transcription

SecureZIP for WindowsCommand LineUsers Manual

Copyright 1997-2007 PKWARE, Inc. All Rights Reserved.No part of this publication may be reproduced, transmitted, transcribed, stored in a retrieval system,or translated into any other language in whole or in part, in any form or by any means, whether it beelectronic, mechanical, magnetic, optical, manual or otherwise, without prior written consent ofPKWARE, Inc.PKWARE, INC., DISCLAIMS ALL WARRANTIES AS TO THIS SOFTWARE,WHETHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIEDWARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE,FUNCTIONALITY, DATA INTEGRITY, OR PROTECTION. PKWARE IS NOT LIABLE FORINCIDENTAL OR CONSEQUENTIAL DAMAGES.Portions of this software include RSA BSAFE cryptographic or security protocolsoftware from RSA Security Inc.This software includes portions that are copyright The OpenLDAP Foundation, 19982003 and are used under the OpenLDAP Public License. The text of this license isindented below:The OpenLDAP Public LicenseVersion 2.7, 7 September 2001Redistribution and use of this software and associated documentation("Software"), with or without modification, are permitted provided that thefollowing conditions are met:1. Redistributions of source code must retain copyright statementsand notices,2. Redistributions in binary form must reproduce applicable copyrightstatements and notices, this list of conditions, and the followingdisclaimer in the documentation and/or other materials providedwith the distribution, and3. Redistributions must contain a verbatim copy of this document.The OpenLDAP Foundation may revise this license from time to time. Eachrevision is distinguished by a version number. You may use this Software underterms of this license revision or under the terms of any subsequent revision of thelicense.THIS SOFTWARE IS PROVIDED BY THE OPENLDAP FOUNDATION AND ITSCONTRIBUTORS AS IS'' AND ANY EXPRESSED OR IMPLIEDWARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIEDWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULARPURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENLDAPFOUNDATION, ITS CONTRIBUTORS, OR THE AUTHOR(S) OR OWNER(S)OF THE SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUTNOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER INCONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OROTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THISSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

The names of the authors and copyright holders must not be used in advertisingor otherwise to promote the sale, use or other dealing in this Software withoutspecific, written prior permission. Title to copyright in this Software shall at alltimes remain with copyright holders.OpenLDAP is a registered trademark of the OpenLDAP Foundation.Copyright 1999-2001 The OpenLDAP Foundation, Redwood City, California,USA. All Rights Reserved. Permission to copy and distribute verbatim copies ofthis document is granted.PKWARE, the PKWARE logo, the zipper logo, PKZIP, PKUNZIP, PKSFX, and SecureZIPare registered trademarks of PKWARE, Inc.Trademarks of other companies mentioned in this documentation appear for identificationpurposes only and are the property of their respective companies.RSA and BSAFE are registered trademarks of RSA Security Inc.2007-08-01

ivTable of Contents1WELCOME. 1Introduction.1About This Manual .1Your Work Environment: The Command Line. 2Entering Commands .2Setting PKZIP in the Path .3Strong Encryption .4Digital Signatures .4Using Digital Certificates .4Smart Card Compatibility .5Using Help .5Getting License Information.6Getting Version Information .6Technical Support .72THE BASICS. 8An Overview of What PKZIP Does .8Supported Archive Types .9Entering Commands: Syntax .10Adding Files to an Archive .11Archive File Naming Conventions. 11Adding a Single File .12Adding Multiple Files.13Moving Files into an Archive .14Viewing Files in an Archive .15Extracting Files from an Archive .15Extracting All Files .16Extracting Some Files .16Extracting Files to a Different Directory .16Extracting New and Newer Files.16

vUsing Filters When Selecting Files.17Selecting Files by Date .17Selecting Files by Age .17Selecting Files by Size.18Selecting Files to Include or Exclude.18Understanding Commands and Options .20Difference between a Command and Option.20Including an Option in Your Command Line .20Abbreviating Commands and Options .21Using Multiple Options .21Commands and Options That Have Values .21Conventions in This Guide .223ADDING FILES TO AN ARCHIVE. 23Default Values for Commands and Options .23Creating and Updating Archives.23Adding All Files in a Directory.23Adding New and Modified Files .24Adding Only Files That Have Changed .24Clearing Archive Attributes .25Incremental Archiving .25Writing an Archive to STDOUT and Special Files .26Writing an Archive to STDOUT.26Writing an Archive to a Named Pipe.27Encrypting Files That You Add to an Archive .28Encrypting Files with a Passphrase.28Encrypting Files with a Recipient List .31Encrypting File Names.33Encrypting Using Only FIPS-Approved Algorithms . 35Accessing Recipients in an LDAP Directory .37Contingency Keys .39Working with Digital Signatures .39Compressing Files in Subdirectories.43Storing Directory Path Information .44Additional Methods for Storing Directory Path Information.44Storing and Recreating Directory Path Information . 45Setting the Compression Level.46Specifying a Compression Level from 0-9 . 47Specifying a Compression Level by Name . 47Compressing Files with a List File .48Getting a List of Files from Standard Input .49Compressing Files with the Deflate64 Method.49

viCompressing Files with the BZIP2 Method.50Compressing Files Compatible with the Data Compression Library. 50Compressing Files to a Specified Type of Archive. 51Compressing Files to Diskette .52Creating a Spanned Archive .52Creating a Split Archive .52Preserving International Characters in File Names .53Creating Multiple, Respective Archives .54Storing File Information .55Compressing Files with Specified Attributes.55Extended Attribute Storage.56Including Additional Information in a ZIP File .57Including a Text Comment .58Including a Header Comment .58Specifying the Date of a .ZIP File .59Removing File Attributes .60Sorting Files Within a .ZIP File .61Moving Files to a .ZIP File.62Shredding Deleted Files.62Working with Self-Extracting (PKSFX) Archives.63Converting a Standard Archive to a Self-Extractor.65Converting to a Self-Extractor with a Different Name.65Options for Creating Self-Extractors .65Run Programs with the Self-Extractor .67Extraction Options for the Native Self-Extractor .684EXTRACTING FILES. 70Introduction.70Default Values for Commands and Options .70Extracting New and Existing Files.70Extracting All Files from an Archive .71Extracting Newer Versions of Existing Files and New Files .71Extracting Only Newer Versions of Files . 71Extracting from an Archive Embedded in An Archive. 72Extracting an Archive on STDIN or a Special File.72Extracting from an Archive on STDIN.73Extracting an Archive from a Named Pipe.73

viiChecking for Viruses when Extracting.74Extracting Files in Lower Case .75Preserving File Times .75Translating End of Line Sequence .75Retaining Directory Structure while Extracting.76Sorting Files in the Extract Directory .76Extracting Files Only for Display .77Extracting Files with a List File .77Authenticating Digital Signatures.77Extracting Only Trusted Archives .79Specifying Trusted Signers .795MISCELLANEOUS OPERATIONS . 82Introduction.82Overwriting Files .82Viewing the Contents of a .ZIP File.83Displaying a Brief View of a .ZIP File.83Displaying a Detailed View of the .ZIP File.83Converting File Names to a Short Format .84Inserting a Timestamp in the Archive File Name .85Printing the Contents of a .ZIP File.86Testing the Integrity of a .ZIP File .86Apply Strict Checking to Certificates .87Checking for Revoked Certificates.88Obtaining a CRL .89Pausing on Warnings.89Treating Warnings as Errors .90Previewing Command and Option Operations.91Fixing a Corrupt .ZIP File .91Create a Temporary .ZIP File on a Alternate Drive.92

viiiSuppressing Screen Output .92Setting Internal Attributes .93Encoding an Archive to Another Type .93Removing an Intermediate Archive .94Generate a List File .946CHANGING DEFAULTS FOR COMMANDS AND OPTIONS. 96Viewing the Configuration File.96How Default Settings Work.97Filter Options .98Changing a Default Value .99Changing Defaults for Filter Options.99Changing Defaults for Compression Method.100Using the Options Dialog to Change Defaults .100Resetting to Original Defaults .101Resetting Individual Defaults .101Resetting All Defaults.102Using an Alternate Configuration File.102Creating an Alternate Configuration File.102Using an Alternate Configuration File .1037COMMAND CHARACTERISTICS. 104Introduction.104Changing Date and Time Environment Variables .104Changing the List Character for List Files.105Changing the Command/Option Character .105A REFERENCE TO COMMANDS AND OPTIONS. 107B ERROR AND WARNING MESSAGES. 150Error Messages.150Warning Messages .156C FREQUENTLY ASKED QUESTIONS . 162

ixD HOW PKZIP WORKS . 166Two Processes .166Compression.166Information Content .166Binary Data Representation.167Speed vs. Size .170Archiving .170How PKZIP builds a .ZIP File .170CRC .172Deleting Files from a .ZIP File .173Adding to an Existing .ZIP File.173INDEX . 174

11WelcomeIntroductionWelcome to SecureZIP for Windows Command Line. SecureZIP for WindowsCommand Line provides a command-line interface to SecureZIP for use in creatingscripts and batch files. With SecureZIP Command Line, you execute SecureZIPcommands and options by entering them at a character-based command prompt andrunning the resulting command line.SecureZIP Command Line supports the full range of compression and archivingfeatures of the graphical SecureZIP for Windows Desktop. SecureZIP Command Linealso supports both traditional ZIP encryption and strong encryption. SecureZIPCommand Line decrypts files encrypted with any other version of SecureZIP orPKZIP and authenticates digital signatures attached to archives and archived files.About This ManualThis manual describes how to use SecureZIP Command Line. SecureZIP CommandLine contains a superset of the commands and options of PKZIP Command Line. Ingeneral, references to PKZIP in the text should be taken to apply equally toSecureZIP. If a feature has special requirements or comes only with SecureZIPEnterprise, this is noted in the text.The chapters group related commands and options and describe how to use them.Chapter 2 provides an overview of program features and includes brief tutorials. Seein particular the section “Understanding Commands and Options” for an explanationof how commands and options work.You can customize the default behavior of most commands and options. Chapter 6describes how.Appendix A contains a complete reference to the commands and options of theprogram. Experienced users may find much of the information they need in thisappendix.

2Your Work Environment: The Command LineIn SecureZIP Command Line, your work area is a character-based command line.You enter a command by typing the command on the command line; to execute thecommand, you press Enter.To display a command line prompt in Windows, do one of the following: Choose Command Prompt from the list of programs in the Start menu Choose Run from the Start menu, enter cmd in the field, and choose OK.Entering CommandsThe syntax for commands entered on the command line is shown below. Bracketsset off elements that are optional. (Do not type the brackets.)pkzipc [command] [options] zipfile [@list] [files.]Examples:To do thisCommand lineAdd specified filesto an archivepkzipc –add zipfile.zip addfile.txt addfile2.docAdd to an archive allfiles in currentdirectorypkzipc –add zipfile.zipor:pkzipc –add zipfile.zip *Add to an archive allfiles in a specifieddirectorypkzipc –add zipfile.zip subdir\*Add files with thefast compressionoptionpkzipc –add –fast zipfile.zipView list of files inarchivepkzipc zipfile.zipView list of fileswhose names beginwith "f" in archivepkzipc zipfile.zip f*Extract all files froman archivepkzipc –extract zipfile.zipExtract specifiedfiles from an archivepkzipc –extract zipfile.zip readme.txt mystuff.doc

3Setting PKZIP in the PathThe installation puts PKZIP on your system's search path so that you can access theprogram from any directory without specifying a path. However, if for any reason youneed to specify the path yourself, you can.To add the PKZIP installation directory to your search path in Windows 2000 orWindows XP, follow the steps below.1. Close any open Command Prompt windows.2. Go to “My Computer” on your desktop and right-click the My Computer icon.3. Select Settings Control Panel from the Start Menu.4. In the Control Panel, double click the System icon. The System (Properties)dialog appears.5. Click the Advanced tab and then click the Environmental Variables button.6. Select the PATH variable in the System (Environment) Variables or User(Environment) Variables boxes. If you are unable to locate the PATH variable,enter the following in the Variable box:path7. In the Value box, enter (in quotes) the path to the folder where SecureZIPCommand Line is installed. (The quotes are necessary because the pathcontains a space.)For example, assuming that SecureZIP Command Line (pkzipc.exe) isinstalled in the default location, enter:"c:\program files\pkware\pkzipc"If necessary to separate the path from another path designation, precede yourpath with a semicolon.8. Click the Set button.9. Click the OK button.You may now access SecureZIP Command Line from any directory withoutspecifying a path. This change will take effect the next time you open anCommand Prompt Window to run SecureZIP Command Line.If necessary, consult your systems administrator for further information on setting thepath environment variable.

4Strong EncryptionPKZIP enables you to use either of two kinds of encryption to encrypt files: the older,traditional PKZIP encryption, or strong encryption. Strong encryption is much moresecure than traditional PKZIP encryption.Traditional PKZIP encryption is password-based and uses the password option.Strong encryption can use either a password or a certificate-based list of recipients.To do password-based strong encryption, you use the password andcryptalgorithm options. To do certificate-based strong encryption, you use therecipient option. You must also have a digital certificate to use certificate-basedstrong encryption.People who receive archives strongly encrypted using PKZIP Command Line candecrypt them using PKZIP for any platform (version 6 or later) or a copy of the freeZIP Reader by PKWARE.Digital SignaturesWith SecureZIP, you can attach a digital signature to files in an archive, or to anarchive itself. A digital signature assures people who receive the signed file that it isreally from the person who signed it and has not been changed.SecureZIP allows you to digitally sign either individual files in an archive or thecentral directory of the archive, or both. The central directory contains a list of files inthe archive. Signing the central directory enables a recipient to confirm that thearchive as a whole has not changed. SecureZIP authenticates any digital signatureson extraction.SecureZIP signing functionality is based on the X.509 certificate standard and iscompatible with standard authenticity functionality in other applications such asMicrosoft Internet Explorer.SecureZIP currently supports Level (or Class) One certificates (otherwise known as“email” or “personal” certificates). These certificates must be in 1024-bit (minimum)RSA format and must contain a private key.To use SecureZIP to sign files, you must have a digital certificate. Digital certificatesare available from a variety of certificate authorities. Visit the PKWARE Web site forinformation on obtaining a certificate:http://www.pkware.comUsing Digital Certificates PKZIP does not work directly with Netscape certificate stores. For PKZIP toaccess a certificate that you used Netscape to install, you must export thecertificate from Netscape and then install it in the Windows certificate stores(usually by double-clicking on the certificate file in Windows Explorer).

5 When you install a certificate on your system, the level of security youconfigure— low, medium, or high—affects the notifications you receive whenan application accesses your private key. SecureZIP uses your private key toattach a digital signature, so y

features of the graphical SecureZIP for Windows Desktop. SecureZIP Command Line also supports both traditional ZIP encryption and strong encryption. SecureZIP Command Line decrypts files encrypted with any other version of SecureZIP or PKZIP and authenticates digital signatures attached to archives and archived files. About This ManualFile Size: 706KBPage Count: 187

Related Documents:

Oct 25, 2011 · PKZIP Command Line and SecureZIP for Windows Command Line provide a command-line interface to PKZIP/SecureZIP for use in creating scripts and batch files. With Command Line, you execute PKZIP/SecureZIP commands and options by entering them at a character-based command prompt and running the resulting

Command Library - String Operation Command Command Library - XML Command Command Library - Terminal Emulator Command (Per Customer Interest) Command Library - PDF Integration Command Command Library - FTP Command (Per Customer Interest) Command Library - PGP Command Command Library - Object Cloning

Type the desired command or the command‟s alias at the command prompt. Command : LINE Command: L 2. Press ENTER on the keyboard. 3. Type an option at the command prompt. TIP: Many AutoCAD commands require you to press ENTER to complete the command. You know you are no longer in an AutoCAD command when you see a blank command line.

Other Shortcut Keys 28 Command Line Reference 30 Information for DaRT Notes Users 32 . Open command 39 Save command 39 Save As command 39 Close command 39 Recent Files command 39 Clear MRU List command 40 Remove Obsolete command 40 Auto Save command 40 Properties comman

Compute Command Line Profiler DU-05982-001_v03 4 COMPUTE COMMAND LINE PROFILER OVERVIEW This document is intended for users of Compute Command Line Profiler for NVIDIA CUDATM technology. Compute Command Line Profiler is a command line based profiling tool that can be used to measure performance and find potential opportunities for

For additional help with "zipped" file types, refer to the help files provided with the "PKZIP for Windows", "WinZip", or "ZipCentral" file archiving programs. “PKZIP for Commandline” is not - supported due to file naming conventions. To verify the correct firmware number, see Step 1 (D) in Sect. II Getting Started: Prepare for the Firmware

PKZIP version 2.05. The ZIP file format is being developed by PKWARE, who release the file format specification as public domain (see [2] ). This compression format is well-established and widely used. It is, among others, compatible with: pkzip/pkunzip Windows Compressed Folders winzip,

The Power of the Mind Copyright 2000-2008 A. Thomas Perhacs http://www.advancedmindpower.com 3 Laws of the Mind Law #1 Every Mental Image Which You Allow to Take