home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / COMPRESS / SQPC131.ZIP / SQPC131.DOC < prev    next >
Encoding:
Text File  |  1986-03-02  |  4.2 KB  |  105 lines

  1. -
  2. SQPC Command
  3. -----------------
  4.  
  5. Purpose:   Create a compressed - SQueezed - copy of a file.
  6.  
  7. Format:    SQPC  [d:]input[.ext] [d:[\outpath]]  [/D]
  8.  
  9. Syntax:
  10.  
  11.            The input  file name  is required.   It may  contain a  drive
  12.         letter, a path name, and wildcard characters.
  13.  
  14.            The output file specification  is optional.  If omitted,  the
  15.         squeezed  output  file  is  placed  in  the  current path on the
  16.         current  drive.   If  supplied,  the  output  specification  may
  17.         contain a drive letter and path names.  The output filename  and
  18.         extension  are  taken  from  the  input  filename and extension,
  19.         except that the extension for the output extension is changed to
  20.         contain the letter  "Q" as the  middle letter.  This  identifies
  21.         the file as a "squeezed" file.
  22.  
  23.            If the  input file  name does  not include  an extension, the
  24.         output file name is assigned an extension of "QQQ".
  25.  
  26.            The output file replaces any existing file of the same name.
  27.  
  28. |          The /D option specifies the the input files be deleted after
  29. |       they have been squeezed.
  30.  
  31. Remarks:
  32.  
  33.            SQPC is derived from the SQ File Squeezer written by  Richard
  34.         Greenlaw.  SQPC was written using assembly language to achieve a
  35.         smaller program file  and to improve  performance.  It uses  the
  36.         same Huffman  encoding algorithm  for creating  a squeezed  file
  37.         from any input file.  Additionally, SQPC allows the use of  path
  38.         names  and  wildcards,  and  it  incorporates the file date/time
  39.         stamp feature employed in the newer version of SQ known as NSQ.
  40.  
  41.            The squeezed file created by SQPC can be unsqueezed back into
  42.         the original file form by  using the USQ or NUSQ  programs.  The
  43.         original file date and time are preserved by SQPC and NUSQ.
  44.  
  45.            Compression rates are dependent on the content of the file to
  46.         be squeezed.  For  a typical ASCII  text file, a  compression to
  47.         60% of the original file is common.  For more complex data, such
  48.         as in an EXE file, much smaller compression rates are  expected.
  49.         For small  files, the  rate may  be over  100% because  decoding
  50.         information is included in the squeezed file.
  51.  
  52. |          If any errors are encountered,  the DOS  ERRORLEVEL  variable
  53. |       is set to a value of 1 (one).
  54. -
  55. Examples:
  56.  
  57.         1)  Squeeze  the  file  "PGM.ASM1"  which  is  contained  in   a
  58.            subdirectory call "SOURCE" on drive "A".  Place the  squeezed
  59.            file  in  a  subdirectory  call  "TEST"  on  drive  "B".  The
  60.            squeezed file is called PGM1.AQM.
  61.  
  62.                 A>SQPC A:\SOURCE\PGM1.ASM B:\TEST
  63.  
  64.         2) Create a squeezed file  for the file called "MEMO.TXT"  which
  65.            is contained in the  current directory in the  current drive.
  66.            Place the squeezed file in the same directory on the  current
  67.            drive.  The squeezed file is called MEMO.TQT.
  68.  
  69.                 A>SQPC MEMO.TXT
  70.  
  71.  
  72.  
  73.         3)  Squeeze  all  files  with  an  extension  of "DOC" which are
  74.            contained in the current  directory on drive "B".   Place the
  75.            output in the current path for drive "A".  The squeezed files
  76.            have an extension of "DQC".
  77.  
  78.                 A>SQPC B:*.DOC A:
  79. -
  80. Notes:
  81.  
  82.            Written by Vernon  D. Buerg for  the IBM PC  using PC DOS  2.
  83.         Although this program has been extensively tested, the following
  84.         disclaimer is included:
  85.  
  86.            No warranty is given, either expressed or implied, as to  the
  87.         fitness or usability of  this program.  No liability  is assumed
  88.         for  any  loss  or  damage  claimed  as  a  result of using this
  89.         program.
  90.  
  91.            For public  domain use.   Not for  sale or  hire.  Direct any
  92.         comments to:
  93.  
  94.                 Vernon D. Buerg
  95.                 456 Lakeshire Drive
  96.                 Daly City, CA 94015
  97.                 BBS: (415) 994-2944
  98.                 Compuserve: 70007,1212
  99.  
  100.  
  101.         Version 1.29, April 13, 1985; add ERRORLEVEL settings.
  102.         Version 1.2A, May 20, 1985; minor change for DOS 3.
  103. |       Version 1.31, Mar 2, 1986; added /D option.
  104.  
  105.