home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1997 March / Simtel-MSDOS-Mar1997-CD1.iso / 00_start / sqpc129.doc < prev    next >
Text File  |  1986-08-30  |  4KB  |  101 lines

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