home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 August - Disc 3 / chip_20018103_hu.iso / segedlet / pk250dos.exe / HINTS.TXT < prev    next >
Text File  |  1999-03-01  |  15KB  |  335 lines

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