home *** CD-ROM | disk | FTP | other *** search
/ Doom 1 & 2 Add-On Levels (Alt) / Doom_I_and_II_add-ons_levels.iso / pkzip / hints.txt < prev    next >
Text File  |  1993-01-31  |  14KB  |  322 lines

  1.  
  2. This file contains some answers to frequently asked questions about
  3. PKZIP 2.0, and hints for most efficient use of the software.
  4.  
  5.  
  6. Q:  Is PKZIP and PKUNZIP completely compatible with older versions?
  7.  
  8. A:  PKZIP and PKUNZIP are completely downwardly compatible, but not
  9.     upwardly.  What does this mean?  This means that if you compress
  10.     something with PKZIP 2.0, you will need PKUNZIP 2.0 or later to
  11.     extract it.  However, PKUNZIP 2.0 will uncompress any .ZIP file
  12.     made by any version of PKZIP 2.0 or earlier.  Therefore, If you
  13.     have the latest version of PKUNZIP, you need not worry about not
  14.     being able to decompress any .ZIP file.
  15.  
  16.  
  17. Q:  I get "Warning, I don't know how to handle" when trying to extract
  18.     files.
  19.  
  20. A:  Most likely you are using PKUNZIP 1.1 or an earlier version to
  21.     attempt to extract a .ZIP file created by PKZIP 2.0 or later.
  22.     Make sure that you are using the latest version of PKUNZIP. Also
  23.     be sure you do not have multiple copies of pkunzip in different
  24.     areas on your machine. It may find and use an older version before 
  25.     it finds the newer version.
  26.  
  27.  
  28. Q:  How do I make self-extracting files?
  29.  
  30. A:  This is a two step process.  First create a .ZIP file normally
  31.     with PKZIP, and then use ZIP2EXE to create a self extracting
  32.     .EXE file.  For example, if you have a .ZIP file called STUFF.ZIP
  33.     and then entered:
  34.     
  35.       zip2exe stuff
  36.       
  37.     it would create STUFF.EXE which is a PKSFX self-extracting file.
  38.  
  39.  
  40. Q:  I get "Bad command or File name" when I type in PKZIP or PKUNZIP.
  41.  
  42. A:  This is a DOS error message, and means that PKZIP/PKUNZIP is
  43.     not in the current directory, or locatable by the DOS PATH
  44.     variable.  Consult your DOS manual for use of the PATH statement.
  45.  
  46.  
  47. Q:  I get "Error in zip, use pkzipfix", when attempting to compress
  48.     files.
  49.  
  50. A:  This may be the result of an incorrect command line.  The name of
  51.     the .ZIP file you are creating needs to be BEFORE the names of the
  52.     file you want to compress.  For example, if you want to compress
  53.     FILE1 and FILE2 into STUFF.ZIP, use:
  54.     
  55.       pkzip stuff file1 file2
  56.     
  57.     and not:
  58.     
  59.       pkzip file1 file2 stuff
  60.    
  61.  
  62.  
  63. Q:  How can I use PKZIP to create full and incremental backups?
  64.  
  65. A:  When creating a full backup with PKZIP, use the -a+ option.
  66.     This will turn off the file's archive bit after it is compressed.
  67.     For example:
  68.  
  69.       C:\> pkzip a:fullback -&s -a+
  70.  
  71.     will backup the entire C: drive to a multi-disk .ZIP file called 
  72.     FULLBACK.ZIP on the A: drive.
  73.  
  74.     Then, whenever a file is updated or created by DOS, it will turn
  75.     on the file's archive bit, indicating that the file has changed
  76.     since it was last backed up.  You can create an incremental backup
  77.     set with PKZIP by using the -i switch to only compress files that
  78.     have their archive bit set, and turn off the archive bit after it
  79.     is compressed.  For example:
  80.  
  81.       C:\> pkzip a:incback1 -&s -i
  82.  
  83.     will backup all the files on drive C: that are new or have been
  84.     modified since the last backup was performed.
  85.  
  86.  
  87. Q:  What is an AV?
  88.  
  89. A:  The Authenticity Verification feature allows you to create .ZIP
  90.     files that PKUNZIP or PKSFX can test for authenticity while
  91.     extracting.  This provides for detection of tampered, hacked, or
  92.     virus infected files.
  93.  
  94.  
  95. Q:  How do I use my AV?  Where is my AV?
  96.  
  97. A:  The first thing you need to do is fill out AUTHVERI.FRM included
  98.     in the PKZIP distribution package with the necessary information
  99.     and mail or FAX this to PKWARE.  We will then process your
  100.     information and send you back the information needed to use with
  101.     the PUTAV to install your AV information.  AV numbers are not the
  102.     same as your serial number on the diskette.
  103.  
  104.  
  105. Q:  I ran PUTAV.EXE on the new PKZIP but it did not work, Why?
  106.  
  107. A:  First of all, you need to make sure that you are using the
  108.     PUTAV.EXE from the registered 2.0 version.  You can not use
  109.     the PUTAV.EXE from 1.1, to try and install the AV numbers into
  110.     version 2.0 of PKZIP.  The AV process has changed and you need to
  111.     use the PUTAV.EXE from version 2.0.  Also, PUTAV.EXE will not work
  112.     with the shareware version of PKZIP.EXE, you need to have the
  113.     registered PKZIP.EXE file.
  114.  
  115.  
  116. Q:  I extracted a .ZIP file, but it didn't recreate the directory
  117.     structure stored in the .ZIP file.
  118.  
  119. A:  First make sure the files were compressed using the -rp option
  120.     in PKZIP.  Next, be sure you use the PKUNZIP option -d when 
  121.     extracting files.  The -d option tells PKUNZIP to re-create stored
  122.     directories on extraction.
  123.  
  124.  
  125. Q:  I lost the last diskette, or have errors on the last diskette
  126.     in my backup set; or lost or have problems with one or more other
  127.     diskettes in my backup set; or I hit Ctrl C and aborted PKZIP
  128.     while I was creating the backup set.  How can I recover the files
  129.     that are still intact in the backup set?
  130.  
  131. A:  PKZIPFIX can be used to restore the .ZIP file index after
  132.     the .ZIP files on each diskette have been concatenated into one
  133.     .ZIP file.  Starting with the lowest number backup diskette
  134.     (normally disk #001, PKZIP places the volume label PKBACK# nnn
  135.     onto each disk, where nnn is the disk number), copy this file
  136.     to your hard disk (or network disk).  For example, say the .ZIP
  137.     filename for the backup set is BACK1.ZIP, on drive B:.  Enter:
  138.  
  139.       copy b:back1.zip
  140.  
  141.     Then, insert each diskette in ascending numerical order and enter:
  142.  
  143.       copy/b back1.zip+b:back1.zip
  144.  
  145.     After you have gone through the all the disks in the backup set,
  146.     then use PKZIPFIX on this file by entering:
  147.  
  148.       pkzipfix back1
  149.  
  150.     This will create the file PKFIXED.ZIP which can then be extracted 
  151.     by PKUNZIP.  Any files that were on missing or damaged diskettes 
  152.     will most likely have errors, but any files that were wholly 
  153.     contained on intact diskettes should be extractable.  This 
  154.     procedure will also work on a subset of the backup set, if for 
  155.     example, you only wanted to recover the files on disks 10 through 15.
  156.  
  157.  
  158. Q:  When is it valid to use a '-' or '+' switch at the end of a option?
  159.  
  160. A:  With PKZIP and PKUNZIP certain options may be followed by a
  161.     trailing - or + to modify the original option.  The basic rule to
  162.     follow in knowing whether a - or + will effect the original option
  163.     is, if the option can be modified in the PKZIP.CFG file, then
  164.     a - or + will effect it.
  165.  
  166.     Below is a list of options that can be affected by a trailing '-'
  167.     symbol.  As always consult your manual for more information about
  168.     individual switches.
  169.  
  170.  
  171.            OPTION           MEANING
  172.            ------           -------
  173.         -i-             Do not clear the archive attribute
  174.         -k-             Override ZIPDATE=KEEP in pkzip.cfg
  175.         -m-             Do not remove directories after compression
  176.         -o-             Override ZIPDATE=LATEST in pkzip.cfg
  177.         -p-             Override PATHS=ALL or PATHS=RECURSE
  178.         -q-             Override ANSI=ENABLED
  179.         -r-             Override RECURSE=ON
  180.         -(-             Override SLOWMEMCPY=ON
  181.         -&f-            Override FORMAT=ON
  182.         -&l-            Override BACKUP=LOW
  183.         -&s-            Override BACKUP=FULL
  184.         -&u-            Override BACKUP=UNCONDITIONAL
  185.         -&v-            Override BACKUP=VERIFY
  186.         -&w-            Override BACKUP=WIPE
  187.         -&-             Turns off all BACKUP= options
  188.  
  189.  
  190.     Here is a list of the options that can be modified by a trailing
  191.     '+' symbol.
  192.  
  193.  
  194.            OPTION           MEANING
  195.            ------           -------
  196.         -a+             Clear archive attributes for files archived
  197.         -3+             Override 386=DISABLE
  198.         -++             Override EMS=DISABLE
  199.         --+             Override XMS=DISABLE
  200.         -~+             Override NETWORK=DISABLE
  201.         -)+             Override DPMI=DISABLE (also in PKUNZIP)
  202.  
  203.  
  204. Q:  What is the difference between the PKZIP option -b and 
  205.     the PKTMP= environment variable?
  206.  
  207. A:  PKZIP creates two different types of temporary files, and allows
  208.     you to specify the location the location of these two types
  209.     separately.  The two situations where PKZIP creates temp files
  210.     are:
  211.  
  212.       *  When a file is being compressed by PKZIP
  213.       *  When an existing .ZIP file is being modified
  214.  
  215.     When PKZIP is in the process of compressing a file, it might
  216.     need to create a temporary file to store information that does
  217.     not fit in memory.  PKZIP will create these temporary files
  218.     in the directory pointed to by the PKTMP= environment variable,
  219.     or in the current directory if this variable is not present.
  220.     For example, the command:
  221.     
  222.       set pktmp=d:\
  223.     
  224.     will tell PKZIP to create these temporary files on the D:\ drive.
  225.     In general, you can get the best performance from PKZIP by having
  226.     PKTMP= point to a RAM disk or very fast disk in your system,
  227.     unless you are creating or updating a .ZIP file on a Novell network
  228.     drive (see the question regarding Netware support earlier in this
  229.     document).
  230.  
  231.     When PKZIP updates an existing .ZIP file, it creates a new 
  232.     temporary .ZIP file and copies files from the existing .ZIP file 
  233.     or (re)compresses files into this new file.  If the PKZIP process 
  234.     were to be interrupted in any way, the original .ZIP file is still 
  235.     intact.
  236.     
  237.     Once the new .ZIP file is created, PKZIP deletes the old .ZIP file 
  238.     and renames the new temporary .ZIP file to the original name.  
  239.     This however requires that at least twice the size of the original 
  240.     .ZIP file be free on the drive where the .ZIP file is.  If say you 
  241.     had a 400K .ZIP file on a 720K diskette, you will get an 
  242.     "insufficient disk space" error when trying to modify this .ZIP 
  243.     file, even if you only wanted to add one small file.  The -b 
  244.     option tells PKZIP to create the new temporary on a drive 
  245.     different from where the original .ZIP file is located, and then 
  246.     copy the new .ZIP file to the destination drive when done.  For 
  247.     example:
  248.     
  249.       pkzip b:stuff *.bat -bc:
  250.       
  251.     Tells PKZIP to add the files *.BAT to the file B:STUFF.ZIP, and 
  252.     create the new temporary .ZIP file on drive C:.  Using the -b 
  253.     option slows down PKZIP, but allows you to update .ZIP files that 
  254.     are larger than the available free space on a disk.
  255.  
  256.  
  257. Q:  PKZIP/PKUNZIP 2.0 have several options for DPMI, EMS, XMS, 386,
  258.     NETWARE, etc.  What are these things and why does PKZIP/PKUNZIP
  259.     use them?
  260.  
  261. A:  DPMI stands for DOS Protected Mode Interface.  It is a facility
  262.     that allows standard DOS programs to execute code in 32-bit
  263.     protected mode, and have access to protected mode resources in
  264.     the computer.  Protected mode code runs faster than corresponding
  265.     real mode code.  PKZIP/PKUNZIP use DPMI to execute some code in
  266.     protected mode for better speed.  With DPMI, PKZIP/PKUNZIP can run
  267.     up to 25% faster or more using 32-bit protected mode code versus
  268.     using 16-bit real mode code.
  269.  
  270.     EMS and XMS stand for Expanded Memory Specification and eXtended
  271.     Memory Specification respectively.  These are implemented using a
  272.     memory manager on an 80386 or 80486 CPU, or using memory management
  273.     hardware on an 8088 or 80286 system.  EMS and XMS allows standard
  274.     DOS programs to use memory outside of the conventional 640K memory
  275.     space.  PKZIP/PKUNZIP will use this memory in order to allow the
  276.     software to run in less conventional memory.  This is most useful
  277.     when shelling out of other applications to run PKZIP or PKUNZIP
  278.     and there is very little conventional memory free.
  279.  
  280.     PKZIP and PKUNZIP support 80386 and 80486 CPU's and has special
  281.     code that takes advantages of these chips.  This code runs
  282.     fastest in protected mode with DPMI (see above).  However, even
  283.     when running in real mode PKZIP/PKUNZIP will use 32-bit code for
  284.     better speed.  Using 32-bit code can allow PKZIP/PKUNZIP to run
  285.     up to 10% faster or more compared to executing 16-bit code.
  286.  
  287.     PKZIP also is Novell Netware aware.  When creating or updating
  288.     .ZIP files on a network drive, use of Novell functions can make
  289.     PKZIP run several times faster than it would otherwise.  To get
  290.     maximum performance when creating or updating a .ZIP file on
  291.     a network drive, make sure that the PKTMP= environment variable
  292.     points to a drive in the same server as the .ZIP file; or if you
  293.     do not have the PKTMP= environment variable set, that the current
  294.     directory is on a drive that is in the same server as the .ZIP file.
  295.  
  296.  
  297. Q:  My PKZIP says it detects certain versions of DPMI, EMS, or XMS
  298.     that are different than the version numbers for my memory manager
  299.     or driver.  Why is this?
  300.  
  301. A:  There is a difference between the version number of a driver and 
  302.     the version of the DPMI/EMS/XMS specification that it supports. 
  303.     For example, QEMM version 6.02 supports version 3.00 of the XMS 
  304.     specification and version 4.00 of the EMS specification.  QDPMI 
  305.     version 1.01 supports version 0.90 of the DPMI specification. The 
  306.     version of the specification supported affects what functions that 
  307.     driver will support.  PKZIP/PKUNZIP display the version of the 
  308.     specification supported, not the version of the memory manager or 
  309.     driver that provides this support.
  310.  
  311.  
  312. Q:  PKZIP/PKUNZIP display different DPMI/EMS/XMS versions when in
  313.     Windows than outside of Windows.  Why is this?
  314.  
  315. A:  Windows provides its own support of DPMI, EMS and XMS, regardless
  316.     of any memory managers or drivers loaded prior to running Windows.
  317.     The specification versions supported by Windows may be different
  318.     than those supported by memory managers or device drivers loaded
  319.     prior to Windows, and hence PKZIP/PKUNZIP will display different
  320.     specification versions inside of Windows than in DOS.
  321.  
  322.