Click here to Go home
PKWARE and BACKUP


Go to Google

Search WWW Search www.bychoice.com

 
QUICK LINKS Home Page   Previous   Electronics  Ferret32   

The world of data compression is continually growing and evolving. Since the founding of PKWARE in 1986, compression has been a necessary tool for the computer user. Although the uses for our compression products have grown and changed over the years, the fundamental need for reliable compression is as strong as ever.

PKZIP was PKWAREs response to the compression needs of the computer market. PKZIP not only introduced the .ZIP file format to the public for the first time, it also brought a reliable alternative to the plethora of compression utilities on the market in the late 1980s.


The author of this web site has been using the command line version of PKZIP to do a compressive incremental backup. (see example below) This is backup procedure that backs up only those files that have been modified since the previous backup. Contrast with an archival backup, in which all files are backed up regardless of whether they have been modified since the last backup.

Why Use PKWARE ?

  • WINZIP is the defacto industry standard decompression tool. Since PKWARE and WINZIP are sourced from the same company, they are 100% compatible.
  • WINZIP can completely reconstruct the disk directory structures from the archive with path type archive
  • WINZIP is easy to use and everyone knows how to use it already. Hence, nothing to learn anew!

Jump to:



Please choose the appropriate link below to download a shareware version of PKZIP 2.50 or PKZIP 4.00 Command Line* for Windows 95/NT.

*This program runs from the command line only! (PKZIP 2.50 Command Line for Windows 9x/NT runs as an Intel x86 32-bit native application on Windows NT version 3.51 or later, and additionally supports Windows 9x. As a 32-bit application)
(This software is appropriate for use with Ferret32 Macros) and Ferret32 Utilities such as @
(Shareware Version PKZIP Reg. U.S. Pat. and Tm. Off. Patent No. 5,051,745)



Users of PKWARE are bound by PKWARE's shareware license agreement .


About PKWARE (their web site)
(TOP)

Syntax Version 4.00

C:\Program Files\PKWARE\PKZIPC>pkzipc
PKZIP(R)  Version 4.00  FAST! Compression Utility for Windows
Copyright 1989-2000 PKWARE Inc.  All Rights Reserved. Shareware Version
PKZIP Reg. U.S. Pat. and Tm. Off.  Patent No. 5,051,745



PKZIP: (E6) No .ZIP file specified

Usage: PKZIPC [command] [options] zipfile [@list] [files...]

   View .zip file contents: PKZIPC zipfile

   Create a .zip file:      PKZIPC -add zipfile file(s)...

   Extract files from .zip: PKZIPC -extract zipfile

The above usages are only basic examples of PKZIP's capability.



Press any key to continue or  to exit
PKZIP Commands:

Add             Default         Header           Listfile       Test
Comment         Delete          Help             ListSfxTypes   Version
Configuration   Extract         License          Print          View
Console         Fix             ListCertificates Sfx

PKZIP Options:

204             Directories     Lowercase        OptionChar     Smaller
After           Encode          Mask             Overwrite      Sort
Ascii           Exclude         Maximum          Password       Span
Attributes      Fast            More             Path           Speed
Authenticity    Hash            Move             Preview        Store
Before          Header          NameSfx          Recurse        Temp
Binary          Include         Newer            Runafter       Times
Certificate     Larger          NoExtended       Sfx            Translate
Comment         Level           NoFix            Shortname      Volume
DCLImplode      ListChar        Normal           Sign           Warning
Decode          Locale          NoZipExtension   Silent         Zipdate
Deflate64       Logfile         Older

Enter the command or option for additional help,  to exit



(TOP)

Add - add files to a .ZIP file

   
AVAILABLE VALUE(S):

     all (default) - compress new files and existing files

     freshen - compress only files that exist in the .ZIP and
               that have changed

     update - compress new and update existing files

     archive - turn off archive attribute of all added files
               (prepares backup file set for incremental archiving)

     incremental - compress only files that have the archive
                   attribute on and subsequently turns off
                   the archive attribute

     -incremental - compress only files that have the archive
                    attribute on and does not turn off the archive
                    archive attribute
                   the archive attribute

     -incremental - compress only files that have the archive
                    attribute on and does not turn off the archive
                    archive attribute

EXAMPLE ADD USAGE:

     pkzipc -add save.zip *.doc

     pkzipc -add=freshen save.zip *.doc

     pkzipc -add=incremental save.zip *.doc

     pkzipc -add=-increm save.zip *.doc


CONFIGURABLE IN CONFIG FILE?

     yes

(TOP)

Syntax Version 2.50

PKZIP (R)   FAST!   Create/Update Utility   Version 2.50   
Copr. 1989-1999 PKWARE Inc.  All Rights Reserved.   Shareware Version
PKZIP Reg. U.S. Pat. and Tm. Off.  Patent No. 5,051,745


PKZIP /h[1] for basic help   PKZIP /h[2|3|4] for other help screens.


Usage:  PKZIP [options] zipfile [@list] [files...]


       Simple Usage:   PKZIP zipfile file(s)...
                         |      |      |
Program -----------------       |      |
                                |      |
New zipfile to create ----------       |
                                       |
File(s) you wish to compress ----------

The above usage is only a very basic example of PKZIP's capability.

Usage: PKZIP [options] zipfile [@list] [files...]

-a              Add files
-b[drive]       create temp zipfile on alternative drive
-d              Delete files
-e[xx,x,n,f,s,0] Use [Extreme|eXtra|Normal (default)|Fast|Super fast|Store]
-f              Freshen files
-l              display software License agreement
-m[f,u]         Move files [with Freshen | with Update]
-u              Update files
-p|P            store Pathnames|p=recursed into|P=specified & recursed into
-r              Recurse subdirectories
-s[pwd]         Scramble with password [If no pwd is given, prompt for pwd]
-v[b][r][m][t][c] View .ZIP [Brief][Reverse][More][Technical][Comment] sort
by
  [d,e,n,o,p,s] [Date|Extension|Name|natural Order(default)|Percentage|Size]
-&[f|u|l        Span disks [Format|Unconditional format|Low density
  h|w|v]        High density|Wipe disk|enable dos Verify|
  [s[drive]]    Back up entire disk w/ subdirs (-rp) [drive to back up]]

-a+         clear archive Attribute after compression
-c[+]       create [Edit] Comments for all files
-C          add Comments for new files only
-i[-]       add files with archive Attribute set [don't turn attribute off]
-j|J mask|don't mask

PKXIP25 version PKZIP25 Commands:


Add                   Default          Header          Sfx
Comment               Delete           Help            Test
Configuration         Extract          License         Version
Console               Fix              Print           View

PKZIP Options:

204                   Header          NoExtended       Shortname
After                 Include         NoFix            Silent
Attributes            Level           Normal           Sort
Authenticity          ListChar        NoZipExtension   Span
Before                ListSfxTypes    OptionChar       Speed
Comment               Locale          Overwrite        Store
Decode                Mask            Password         Temp
Directories           Maximum         Path             Times
Encode                More            Preview          Volume
Exclude               Move            Recurse          Warning
Fast                  NameSfx         Sfx              Zipdate


Enter the command or option for additional help,  to exit
 pkzip25 -add -rec save.zip addendum.doc

RECURSE
 pkzip25 -add -rec save.zip addendum.doc

ADD
EXAMPLE USAGE:

        pkzip25 -add save.zip *.doc

        pkzip25 -add=freshen save.zip *.doc

        pkzip25 -add=incremental save.zip *.doc
path

     store directory path names for files within a .ZIP file



AVAILABLE VALUE(S):

     current (default) - stores the path from the current directory

     root/full  - store the entire path beginning at the root of
                  the drive; also referred to as 'full' path

     specify  - store the path as specified in your pkzip25 command

     relative - store subdirectory name and path structure information
                relative to the specified directory. This includes
                subdirectory name and path information for files below
                the specified directory. The specified directory's name
                and path information is not preserved.  (This option is
                not available on Unix platforms.)

     none  - no path information stored; turns off path option
             in config file
                subdirectory name and path information for files below
                the specified directory. The specified directory's name
                and path information is not preserved.  (This option is
                not available on Unix platforms.)

     none  - no path information stored; turns off path option
             in config file


EXAMPLE USAGE:

Assuming in you are in the path '/etc/usr'

     pkzip25 -add -path=root save.zip  /etc/usr/*

       (the path stored would be '/etc/usr/')


CONFIGURABLE IN CONFIG FILE?

     yes

        pkzip25 -add=-increm save.zip *.doc

PASSWORD
AVAILABLE VALUE(S):

     your password, or no value

EXAMPLE USAGE:

To include password in the command:

     pkzip25 -add -pass=baseball save.zip

To have PKZIP prompt you for a password 'after'
you type the command:

     pkzip25 -add -pass save.zip

CONFIGURABLE IN CONFIG FILE?
     yes

(TOP)

Examples:

pkzip25 -add=update -recurse -path=full s:\salkow\backupc.zip c:\zzz\*.html
pkzip25 -add=update -recurse -path=full s:\salkow\backupc.zip c:\zzz\*.csv

BACKUP BATCH FILE


Click here to see a complete BACKUP BATCH FILE
based around recursive compressive backup using PKZIP 4.00 Command Line

.

(TOP)

Using the DIR Command to make searchable files


(TOP)

DIR Syntax

Displays a list of files and subdirectories in a directory.

DIR [drive:][path][filename] [/P] [/W] [/D] [/A[[:]attributes]] [/O[[:]sortorder]] [/T[[:]timefield]] [/S] [/B] [/L] [/N] [/X] [/C]

  [drive:][path][filename]
              Specifies drive, directory, and/or files to list.

  /P          Pauses after each screenful of information.
  /W          Uses wide list format.
  /D          Same as wide but files are list sorted by column.
  /A          Displays files with specified attributes.
  attributes   D  Directories                R  Read-only files
               H  Hidden files               A  Files ready for archiving
               S  System files               -  Prefix meaning not
  /O          List by files in sorted order.
  sortorder    N  By name (alphabetic)       S  By size (smallest first)
               E  By extension (alphabetic)  D  By date & time (earliest first)
               G  Group directories first    -  Prefix to reverse order
  /T          Controls which time field displayed or used for sorting
  timefield   C  Creation
              A  Last Access
              W  Last Written
  /S          Displays files in specified directory and all subdirectories.
  /B          Uses bare format (no heading information or summary).
  /L          Uses lowercase.
  /N          New long list format where filenames are on the far right.
  /X          This displays the short names generated for non-8dot3 file
              names.  The format is that of /N with the short name inserted
              before the long name. If no short name is present, blanks are
              displayed in its place.
  /C          Display the thousand separator in file sizes.  This is the
              default.  Use /-C to disable display of separator.

Switches may be preset in the DIRCMD environment variable.  Override
preset switches by prefixing any switch with - (hyphen)--for example, /-W.

example:

dir c:\*.* /s /o-d >sorteddir.txt 'sort in reverse order, newest first
above line creates a file like this one:
04/10/01  02:09p        <DIR>          epd_trn
04/05/01  12:10p        <DIR>          ePD
04/02/01  01:38p        <DIR>          Router Solutions
02/23/01  03:29p        <DIR>          old_events
02/23/01  11:15a        <DIR>          Acrobat3
02/13/01  07:42p        <DIR>          vlflex
02/13/01  10:57a        <DIR>          fpga_if_custom
02/08/01  05:13p        <DIR>          old DLL
02/06/01  02:55p        <DIR>          msie401
02/06/01  02:54p        <DIR>          drvlib
02/06/01  02:54p        <DIR>          I386
02/06/01  12:58p        <DIR>          flexlm
02/01/01  07:49p        <DIR>          ADOBEAPP
01/23/01  12:22p        <DIR>          Multimedia Files
01/22/01  07:54p        <DIR>          Windows Update Setup Files
01/16/01  01:07p                    88 AUTOEXEC.BAT
01/12/01  11:20a        <DIR>          nutcracker
01/11/01  11:53a        <DIR>          Outlook
01/10/01  05:17p        <DIR>          stemp
01/10/01  05:04p        <DIR>          ORANT
08/03/00  02:35p                     0 CONFIG.SYS
              29 File(s)    262,144,849 bytes
                          2,238,190,592 bytes free


Home Page Previous pk apps


(TOP)
Intranet Website -
For information or questions regarding this web page, please contact Steve Salkow