home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / UTILITY / ARCHIVE / AU112D.ZIP / AU.DOC < prev    next >
Encoding:
Text File  |  1990-06-24  |  59.4 KB  |  1,453 lines

  1.  
  2.  
  3.  
  4.         Documentation for                 AAA          U   U
  5.         =======================          A   A         U   U
  6.         AU in general  line= 103         AAAAA RCHIVE  U   U TILITIES
  7.         UNARC          line= 304         A   A         U   U
  8.         CONVERT        line= 575         A   A          UUU
  9.         VIEW           line= 876
  10.         TEST           line= 954          1        1    222    DDDD
  11.         HEADER         line= 977         11       11   2   2   D   D
  12.         ASCAN          line= 1023       1 1      1 1      2    D   D
  13.         REDATE         line= 1132         1   ..   1     2     D   D
  14.         ASIZE          line= 1192       11111 .. 11111  22222  DDDD
  15.         DUPES          line= 1232
  16.         BBSWEEP        line= 1300
  17.         ==================================================================
  18.         AU Ver 1.12d  06/25/90
  19.         By Dave Harris
  20.         ==================================================================
  21.         Beta  Testers:  John Alton          Ray Waechter     ------------
  22.                         Brandon Bachman     ------------     ------------
  23.                         Ed Cavender         ------------
  24.                         Michael Epler       ------------
  25.         ==================================================================
  26.         File Requestable as AU from:
  27.  
  28.         Nibbles 'n Bits
  29.            1:302/5 (Fido), 801:753/2408 (Ghoti), 8:904/101 (RBBS)
  30.            (1-801-753-2408) HST/DS
  31.  
  32.  
  33.         KEYSTONE Net Exchange/RBBS-SD
  34.            1:273/303 (Fido) (1-215-269-9729) 9600 HST
  35.            8:8/11    (RBBS) (1-215-269-9720) 9600 HST
  36.  
  37.         Software Distribution/RBBS-SD
  38.            8:8/11 (RBBS)
  39.            (1-215-269-9720) 9600/450 HST
  40.  
  41.         Wilton Woods
  42.            1:141/250 (Fido)
  43.            (1-203-762-8481) HST/DS
  44.  
  45.         Source code Requestable as AUSOURCE from 1:302/5 (about 57k)
  46.         Complete History Requestable as AUHIST (about 7K)
  47.  
  48.         =================================================================
  49.         If  somebody can make an archiver like LHARC, and release  it  as
  50.         freeware,  then  gosh  darnit I can make a  some  simple  utility
  51.         programs  and  distribute them at the same price so...  I  hereby
  52.         place  these programs in the Public Domain.  The source  code  is
  53.         freely  available  and  may be modified to  fit  your  own  needs
  54.         provided  you  do not distribute the modified programs.   If  you
  55.         make modifications that you feel would benefit other people  then
  56.         send  me  a  copy  of the  modified  source  code  (changes  well
  57.         documented)  and your changes will be  considered.   Constructive
  58.         comments are always welcome.  Net mail comments to 1:302/5 (fido-
  59.  
  60.  
  61.                                    1
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.         net), or leave a message on my BBS at 801-753-2408.
  71.  
  72.         Under  NO condition is anyone to sell ANY of these  programs  for
  73.         ANY  profit  (this includes PD/Shareware distributors).   If  you
  74.         explicitly  paid money for any of these programs, then  you  paid
  75.         too much.  I would expect this paragraph to be gone (among  other
  76.         things)  if  you  did   pay money, but  what  goes  around  comes
  77.         around...
  78.  
  79.         DISCLAIMER:   Although  many  hours have gone  into  testing  and
  80.         debugging these programs, I in no way take responsibility if  any
  81.         of these programs fail to work properly on your system or  causes
  82.         damage  to your files and/or system.  They are distributed  as-is
  83.         with no warranty of any kind.  I can't strongly enough  recommend
  84.         that you make a full backup before running CONVERT on any of your
  85.         files you would like to keep around.
  86.  
  87.         If  the  program is marked BETA then realize that it  is  not  as
  88.         tested as I would like it to be.  Don't take it upon yourself  to
  89.         put any of these programs in the SDS distribution network beta or
  90.         otherwise.  AU is placed in SDS through 1:141/250 when I and  the
  91.         beta testers feel it is sufficiently working.
  92.  
  93.         AU  does  not exempt you from your obligation  to  the  Shareware
  94.         authors  of PKZIP, PAK, ARC, SCAN, LIST, DSZ, and other  products
  95.         it interfaces with.
  96.  
  97.         *****************************************************************
  98.  
  99.         HELP!   Beta Testers Wanted!:  I had about 9 testers at one  time
  100.         but half of them have fizzled out on me.  I can use half a  dozen
  101.         or so more testers at this time.
  102.  
  103.         *****************************************************************
  104.         AU in general
  105.         =============
  106.         AU  (except  where  noted) has been  tested  with  the  following
  107.         software versions:
  108.  
  109.         DOS 3.2, 3.21, 3.3, 4.0, 4.01
  110.         DWC 5.01
  111.         LARC 3.33
  112.         LHARC 1.00, 1.12, 1.13, 1.13c
  113.         LU87 5.00
  114.         PAK 1.0 1.6, 1.61, 2.00, 2.01, 2.10
  115.         PKARC 3.6
  116.         PKZIP 0.90, 0.92, 1.00 beta, 1.01, 1.02, 1.10
  117.         SEAs ARC 1.28, 6.00
  118.         ZOO 1.40, 2.01
  119.  
  120.         It  is  reasonable  to  assume all 9  utilities  will  work  with
  121.         versions of DOS 2.11 and later.  It is also likely that they will
  122.         work  with  most  other  versions  of  these  unarchivers  (where
  123.         applicable)...  But I make no promises.
  124.  
  125.  
  126.  
  127.                                    2
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.         =====================
  137.         Command Line options:
  138.         =====================
  139.         These  are parameters that are entered following the program  (or
  140.         command)  on  the same line.  They always start with a  -  (dash)
  141.         (forward  slash / is also allowed) followed by a letter  with  is
  142.         usually  followed  by  a  value.  The letter  and  value  may  be
  143.         seperated by whitespace and neither are case sensitive.  They may
  144.         be placed before and/or after the file specs (with the  exception
  145.         of BBSWEEP).  Command line options always override the .CFG  file
  146.         settings (or defaults if the utility doesn't use a .CFG file).
  147.         Examples:
  148.  
  149.         UNARC -son round42
  150.         UNARC round42 -son
  151.         CONVERT round42 -S on -X off
  152.         UNARC /x OFF round42 -Ron
  153.  
  154.         =======================
  155.         -? command line option:
  156.         =======================
  157.         Quick  reminder of the command line options.  Works with most  of
  158.         the AU utilities.
  159.  
  160.         =========================
  161.         Smart_Mode ON/off/always:
  162.         =========================
  163.         The AU utilities are able to recognize files as archives even  if
  164.         the  files  extension  would not indicate  this.   Some  examples
  165.         include  .SDN  files  (which  are  usually  in  PAK  format)  and
  166.         NODEDIFF.Axx  which could be in any format.  Set ON, this  option
  167.         first looks at the file extension.  If it is not one of the  ones
  168.         explicitly  mentioned in the AU.CFG file, it then opens the  file
  169.         and  looks for certain bytes being in certain places.  If set  to
  170.         ALWAYS,  the file is opened first thing and checked (so that  you
  171.         could  get  away with renaming .PAK to .ZIP and  whatnot).   This
  172.         tends  to  be  a  bit slower if  most  your  files  have  regular
  173.         extensions already.
  174.  
  175.         Smart_mode relys on hardwired checks for certain bytes at certain
  176.         positions  in  the  files.  I am reasonably sure that  I have  it
  177.         working  for  the  above mentioned versions  of  the  compression
  178.         programs,  but future version may not work as the  authors  often
  179.         feel inclined to rearrange things.   If this does happen, it will
  180.         simply  not  be  recognized as a compressed  file  and  therefore
  181.         ignored.   It is also possible that it will attempt to process  a
  182.         file that isn't really archived if the file just happens to  have
  183.         the  right bytes at the right places.  This also shouldn't  be  a
  184.         problem since the compression programs are usually good enough to
  185.         see the file isn't one of theirs.
  186.  
  187.         Here  is a listing of bytes that are used as  identification  for
  188.         smart_mode:
  189.  
  190.  
  191.  
  192.  
  193.                                    3
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.          .ZOO     files have ZOO  as the first 3 bytes in the file
  203.          .DWC     files have DWC  as its last 3 bytes
  204.          .PAK     files have chr(26) as first byte
  205.          .ARC     files have chr(26) as its first byte and chr(26) as its
  206.                   second to last byte
  207.          .ZIP     files have PK chr(3) as its first 3 bytes
  208.          .LZH     files have lh as its 4th and 5th bytes
  209.          .LZS     files have lz as its 4th and 5th bytes
  210.  
  211.         Small Quirks:
  212.         DWC  does not work unless the file on its command  line  actually
  213.         ends with .DWC.  Therefore DWC files are renamed to *.DWC if they
  214.         are  not  already.  Currently they are not renamed  back  to  the
  215.         original  file  name.  If this is a problem for  anyone,  let  me
  216.         know.
  217.  
  218.         If a .ARC file's last file has a file comment attached to it, the
  219.         file will be recognized as a .PAK file instead (since its  second
  220.         to last byte will probably not be a chr(26)).
  221.  
  222.         If  a file is padded on the end with NULLs, then smart mode  will
  223.         skip  backwards  (up  to 256 bytes) until  it  finds  a  non-null
  224.         character.   This should help smart_mode for .ARC and .DWC  files
  225.         that have been transferred using Xmodem.
  226.  
  227.         -Son,  -Soff, and -Salways are the command line options  used  in
  228.         most of the AU utilities to set the desired smart_mode operation.
  229.         These override the settings in AU.CFG.
  230.  
  231.         If you do encounter a file that will not unarc then please let me
  232.         know about it so it can be fixed.
  233.  
  234.         =====================
  235.         self_extracts ON/off:
  236.         =====================
  237.         AU utilities are also capable of recognizing when a .COM or  .EXE
  238.         file  is  a self extracting archive file.  When set on,  it  will
  239.         process  this type of file (by simply executing it for you).   It
  240.         has been made to work with LHARC, PKZIP, PKARC, and PAK with most
  241.         if  not all version produced.  It also works with SEZ  2.30  self
  242.         extractors.   This  is a third party product  that  creates  self
  243.         extractors for ZOO.  DWC doesn't make self extractors as far as I
  244.         can  tell.  Sea's ARC is capable, but there are so many  versions
  245.         that I haven't found anything that is constant throughout all  of
  246.         them, therefore, they have not been included.  Unless somebody is
  247.         in  dire  need I doubt I will bother with them.  It has  been  my
  248.         experience that most people use Lharc's because it adds less than
  249.         2K  on to your file, whereas ZIP and PAK add more like 10K.  -Xon
  250.         and -Xoff are the command line options.
  251.  
  252.         Like  smart_mode,  self_extract also relies on  the  right  bytes
  253.         being  in the right places so the same things apply.  Here  is  a
  254.         listing of what bytes I currently use to tell whether a file is a
  255.         self extractor:
  256.  
  257.  
  258.  
  259.                                    4
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.         LHARC .COM 1.13 files have   "LHa" at offset byte 6
  269.         LHARC .COM 1.0               "LHa"               13
  270.         LHARC .EXE 1.13L             "LHa"               37
  271.         LHARC .EXE 1.13S             "LHa"               38
  272.         LHARC .EXE 1.0               "LHa"               45
  273.         PKSFX 1.01                   "PKW"               45
  274.         PKSFX 1.10                   "PKW"               50
  275.         Sez (Zoo) 2.30               "Sez"             2246
  276.         PAK 1.51                     "NoG"             4694
  277.         PAK 1.61                     "NoG"             4764
  278.         PAK 2.10                     "NoG"             5227
  279.         PKarc 3.5                    "PKW"             8929
  280.         PKarc 3.61                   "PKW"             9774
  281.         PKarc 3.6                    "PKW"             9790
  282.         PKZip 0.92                   "PKZ"            14064
  283.         PKZip 1.01,1.02              "PKZ"            14368
  284.  
  285.         AU.CFG Configuration file
  286.         =========================
  287.         Contains  the information needed by the utilities.   The  options
  288.         placed  above  the first BEGIN statement are used by all  of  the
  289.         utilities.  The options between BEGIN statements are used only by
  290.         the  individual  utilities  (ie  BEGIN  UNARC,  BEGIN   CONVERT).
  291.         Options  set  after  the BEGIN  statements  override  the  global
  292.         options set at the top of the file.
  293.  
  294.         The AU.CFG file should be placed in one of the these places:
  295.  
  296.         1 - The current directory you are running the utilities in.
  297.         2 - in your APPEND data file path (handled automatically by DOS)
  298.         3 - The directory specified by the environment variable AUPATH
  299.             (ie SET AUPATH=c:\utility\temp)
  300.         4 - In a directory in your PATH
  301.  
  302.         The utilities that use it will search for it in that order.
  303.  
  304.         *****************************************************************
  305.         UNARC:
  306.         ======
  307.  
  308.         This  program allows you to unarchive programs  compressed  under
  309.         SEAs,  PKARC,  PAK, PKZIP, ZOO, DWC, LBR, LHARC  (and  any  other
  310.         archiver  that will come along in the future) without  having  to
  311.         remember  how to unarc it.  This program does not do  the  actual
  312.         uncompressing,  but  acts as a shell (or glorified  switch)  that
  313.         automates  running  the uncompressing  programs.   The  unarchive
  314.         programs  must  either be in the path or used  with  an  explicit
  315.         pathname specified in the AU.CFG file.
  316.  
  317.  
  318.         AU.CFG holds the information that UNARC needs in order to run (it
  319.         also contains the info for the other programs too).  The  startup
  320.         AU.CFG  is  adequate  for  most folks, but  you  can  modify  the
  321.         options, or if there are archivers you have that are not  listed,
  322.         these  can be added.  The information pertaining to UNARC  starts
  323.  
  324.  
  325.                                    5
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.         at the line containing BEGIN UNARC and continues down to the next
  335.         BEGIN  statement.
  336.  
  337.  
  338.         The Unarc segment has the following format:
  339.         ===========================================
  340.  
  341.         BEGIN UNARC
  342.            smart_mode      on|off|always   ;Comments follow a semicolon
  343.            delete_behind   on|off          ;| indicates a choice,  don't
  344.            recurse         on|off          ;actually use it.
  345.            self_extracts   on|off
  346.            redirect_to     <where you want the output to go>
  347.  
  348.            .EXT unarc method
  349.            .EXT unarc method
  350.  
  351.            ie.
  352.  
  353.            .ZIP PKUNZIP
  354.            .LZH LHARC x
  355.            .
  356.            .
  357.            .
  358.  
  359.         UNARC (as well as the other utilities) ignores whitespace such as
  360.         the  indentation.  The switches may appear in any order but  must
  361.         reside on seperate lines.  UNARC (and AU in general) is not  case
  362.         sensitive  (although some compression programs might  care  which
  363.         case their command line parameters are in).
  364.  
  365.         You may have up to 20 unarchiving methods in the .CFG file.   The
  366.         method can include a path such as .LZH c:\compress\lharc x  which
  367.         would allow you to use archive programs not in your path.
  368.  
  369.         The following are the switches that are used.  The default option
  370.         is  shown  in  CAPS.  The defaults are the ones  set  up  in  the
  371.         startup  AU.CFG  which is distributed with AU.   Removed  options
  372.         are considered OFF options.
  373.  
  374.         =========================                     ===================
  375.         smart_mode ON/off/always:                     -Son -Soff -Salways
  376.         =========================                     ===================
  377.         When  smart_mode is ON, UNARC will additionally check files  with
  378.         extensions  other  than the ones specified in the .CFG  file  and
  379.         determine what format they are in and unarc them (if they are  in
  380.         archived  format and that format is in your AU.CFG file).   Refer
  381.         to the AU in general section for more info.
  382.  
  383.         =====================                                  ==========
  384.         delete_behind on/OFF:                                  -Don -Doff
  385.         =====================                                  ==========
  386.         This option specifies whether you want the original archived file
  387.         deleted after it is unarced.  -Don and -Doff are the command line
  388.         options.
  389.  
  390.  
  391.                                    6
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.         ================================                        =========
  402.         Redirect_to <where output goes>:                        -O<where>
  403.         ================================                        =========
  404.         This option lets you decide where you want your output to go.  If
  405.         left  blank or commented out, it will go to the  standard  output
  406.         device (your screen unless > is used).  All that mess that  comes
  407.         up  when  unarchiving will go to that place.   Examples  are  NUL
  408.         where output goes to never never land.  PRN where output goes  to
  409.         the  printer  and FILENAME.EXT  where output goes to  that  file.
  410.         LHARCs heading is written directly to the screen and does not  go
  411.         to the place you specified, but other than that it redirects  all
  412.         the  other  output that I know of.  -Onul -Oprn  -Ounarc.log  are
  413.         examples of command line options.
  414.  
  415.         Note:  If the program stops, then it is likely waiting for you to
  416.         press  Y  or  N to override a file  that  already  exists.   This
  417.         happens occasionally when you have RECURSE ON and REDIRECT_TO set
  418.         to  somewhere  other than the screen.  Refer to  the  -Y  command
  419.         option.   It  will  let you avoid this problem at  the  price  of
  420.         possibly overriding an existing file.
  421.  
  422.         Additionally:  One  of the hacks making the rounds  is  the  bomb
  423.         archive  file  header that has ANSI escape  code  sequences  that
  424.         reassign  your keyboard.  Some are harmless "jokes" while  others
  425.         attempt to reassign keys to strings that can erase directories or
  426.         worse.   If  you  don't mind not seeing  these  headers  and  the
  427.         unarchiver  in  progress, it is highly recommended that  you  set
  428.         "redirect_to NUL" inside the cfg file.
  429.  
  430.         ===============                                        ==========
  431.         recurse on/OFF:                                        -Ron -Roff
  432.         ===============                                        ==========
  433.         Sometimes  you  have archives within archives.  Some  of  the  PC
  434.         Magazine Volume disks come like this, and there are a variety  of
  435.         other  examples I'm sure.  You may wish to unarchive those  files
  436.         as  well.  With recurse on this is exactly what  happens.   After
  437.         unarching  the main archive file(s) it will proceed to check  the
  438.         files that it/they split into.  It will go as many levels deep as
  439.         necessary.
  440.  
  441.         =====================                                  ==========
  442.         self_extracts ON/off:                                  -Xon -Xoff
  443.         =====================                                  ==========
  444.         UNARC  is  capable of recognizing when a .COM or .EXE file  is  a
  445.         self  extracting archive file.  When set on, it will  unarc  this
  446.         type  of file (by simply executing it for you).  Refer to the  AU
  447.         in general section for the specifics of what it can and can't do.
  448.         -Xon and -Xoff are the command line options.
  449.  
  450.         =======================
  451.         -P command line option:
  452.         =======================
  453.         Lets  you specify a parial list of files in the archive you  want
  454.         to  extract.  For example, -P *.com will extract only  the  *.com
  455.  
  456.  
  457.                                    7
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.         files.  You may use as may -P's on the command line as you  need.
  467.         If  you specify the file(s) you are going to extract and  the  -P
  468.         has a * in it, then the -P becomes unnecessary.
  469.  
  470.         UNARC file *.com        <--    WORKS
  471.         UNARC file temp.doc     <--    DOESN'T WORK
  472.         UNARC file -Ptemp.doc   <--    WORKS
  473.         UNARC  *.com            <--    Will fully  unarchive  all  .com
  474.                                        files in the directory. (the  *.com is
  475.                                        not a partial in this case).
  476.  
  477.         If -P is not used, UNARC extracts ALL files from the archive.
  478.  
  479.         Also,  Unless  you specify -P for the compressed  file  types  as
  480.         well, UNARC will not recurse to find the -P's inside them.
  481.  
  482.         =======================
  483.         -C command line option:
  484.         =======================
  485.         Lets you specify an alternate .CFG file.  ie.  UNARC -C file.cfg.
  486.         If  all the stuff in a .cfg file pertains to the program you  are
  487.         using, then the BEGIN statement is unnecessary.
  488.  
  489.         =======================
  490.         -Y command line option:
  491.         =======================
  492.         This  option takes a On/Off value.  It specifies whether  or  not
  493.         you  want  UNARC  to  answer Y (for yes)  to  the  questions  the
  494.         unarchiving  programs  may  ask.  Such  questions  include  "file
  495.         already  exists,  Overwrite?" and "Do you wish to  continue  self
  496.         extraction?".  Normally you would not want to use this option  as
  497.         those  "yes/no"  questions the archivers ask are there  for  good
  498.         reasons.   The  only good reason to set this on is  if  you  have
  499.         UNARC  in  an  automated process that happens when  you  are  not
  500.         around.   ASCAN  calls UNARC with -Yon because it is  normally  a
  501.         process  that can take several hours (and you have better  things
  502.         to do than be a mother hen).
  503.  
  504.  
  505.  
  506.  
  507.         Running it is easy.  Simply type:
  508.  
  509.         UNARC [command line options] [filename] [destination]
  510.  
  511.         and  it will unarc it/them.  If you leave the filename  blank  it
  512.         will  unarc  the whole directory (the files that are  in  archive
  513.         format that is).  So if you do like I do and move one file off to
  514.         a  temporary area for testing, unarchive it, then move it to  the
  515.         download  area  (given it is not hacked or a trojan),  then  just
  516.         type UNARC at the temporary directory.  You can use wildcards  if
  517.         you  find  the  need to.  Also, you do not have  to  specify  the
  518.         extension if you are doing just one file.  ie: UNARC ROUND42 will
  519.         unarc it no matter what format it is.  The filename can also have
  520.         a  drive  and/or directory attached in front of  it.   ie   UNARC
  521.  
  522.  
  523.                                    8
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.         d:\test   will unarc all the archive files on the d: drive  under
  533.         the  \test  directory.   Both the command line  options  and  the
  534.         destination are optional.  The destination is where you want  the
  535.         archived files to unarc to.  In order for the destination to work
  536.         though,  you must specify the filename so that it does not  think
  537.         that your destination is your filename.  ie.
  538.  
  539.         UNARC -Son *.* c:\temp
  540.         ======================
  541.         will  unarc  all files in the current directory that can  be  and
  542.         place their uncompressed files in c:\temp.  The *.* is  necessary
  543.         for without it UNARC would try to unarc the c:\temp directory....
  544.         Smart mode is on in this case.
  545.  
  546.         UNARC d:\download\recent\round42 /d off
  547.         =======================================
  548.         will  unarc  the file round42.???  from  the  d:\download\recent\
  549.         directory   and  put  its  uncompressed  files  in  the   current
  550.         directory.  The delete behind option is turned off.
  551.  
  552.         UNARC \file\net\nodediff f:\
  553.         =============================
  554.         will unarc nodediff.??? from the \file\net directory onto the f:\
  555.         directory.
  556.  
  557.         =======================
  558.         -T command line option:
  559.         =======================
  560.         This  parameter  allows  unarc to act as a  simple  archive  type
  561.         checker.   It takes only one file at a time; if you specify  more
  562.         than  one, it takes the first.  It displays what type of  archive
  563.         file it thinks it is by opening the file and using the code  from
  564.         smart_mode.  .ARCs show up as .PAKs if they have comment headers.
  565.         None  of the other options have any meaning if -T is used in  the
  566.         command line.  To use this option simple type
  567.  
  568.         unarc -t filename
  569.  
  570.         and  it  will  display the type of file it  is,  plus  return  an
  571.         errorlevel as follows:
  572.  
  573.         Self_extractor 21, Non-archived file (or unrecognizable file) 0.
  574.  
  575.         *****************************************************************
  576.         CONVERT:
  577.         ========
  578.  
  579.         Convert allows you to change your archived files from one  format
  580.         to another.
  581.  
  582.         Convert works off the AU.CFG file starting at the statement BEGIN
  583.         CONVERT.   The Convert segment looks much the same as  the  Unarc
  584.         segment  did with the difference of the 'U' and 'A' options  that
  585.         are in front of the methods.  The 'U' option specifies that  this
  586.         is  an unarcing method and the 'A' specifies an  arching  method.
  587.  
  588.  
  589.                                    9
  590.  
  591.  
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.         Note  that  you can have more that one arcing  method.   This  is
  599.         useful  for  benchmarking  a  number of  archivers  on  the  same
  600.         file(s).   It should be pretty straight forward to modify if  you
  601.         need to.  BENCH.CFG is an example of such. (use the -C  bench.cfg
  602.         to use it).
  603.  
  604.         The "redirect_to", "smart_mode", and "self_extracts" options work
  605.         in   CONVERT   the  same  exact  way  as  they  did   in   UNARC.
  606.         You    can   convert   from   self   extractors   but   not    to
  607.         them  (with the exception of PAK 2.x). "delete_behind" does  not
  608.         exist  as it is taken care of in a different way.  Other  options
  609.         in CONVERT  are:
  610.  
  611.         ==============================          =========================
  612.         date_retain ON/off/last/first:          -Don -Doff -Dlast -Dfirst
  613.         ==============================          =========================
  614.         When set to ON, this option allows you to retain the date of  the
  615.         old  file on the new one(s).  If it is set to LAST, then the  new
  616.         archive file will be marked with the date of the most recent file
  617.         in its archive. FIRST likewise chooses the oldest.  If it is  set
  618.         OFF,  the  new file is marked with the current  system  date  and
  619.         time.  The program is not as fast with this option on, so if  the
  620.         date  is  of  no consequence you can  comment  out  this  option.
  621.         Date_retain  last and first execute the program REDATE to do  its
  622.         dirty  work.  Check REDATE's options if you plan on  using  these
  623.         and  make sure REDATE is available for use and not renamed.
  624.  
  625.         ===============                                        ==========
  626.         recurse ON/off:                                        -Ron -Roff
  627.         ===============                                        ==========
  628.         Works  similarly to the way unarc does except that the files  are
  629.         left grouped in the same grouping (only with a different  archive
  630.         format).  If you had 2 .PAK files within one .ZIP file you  would
  631.         end  up  with 2 .LZH files within 1 .LZH file (assuming  you  are
  632.         converting to LZH)
  633.  
  634.         ====================                                   ==========
  635.         convert_pak2 on/OFF:                                   -Pon -Poff
  636.         ====================                                   ==========
  637.         If you are converting from pak 1.xx to pak 2.xx you will probably
  638.         not  want to convert the 2.xx files again.  Setting  this  option
  639.         off  tells  CONVERT  not to convert pak 2.xx  files  if  you  are
  640.         converting to pak.  If you are converting to something other than
  641.         pak  this  option  does nothing.  Setting  this  option  ON  will
  642.         convert  them  as normal.
  643.  
  644.         ===================                                    ==========
  645.         convert_zip1 on/OFF                                    -Zon -Zoff
  646.         ===================                                    ==========
  647.         Likewise  when converting from PKZIP 0.9x to PKZIP 1.0x  you  may
  648.         not want the 1.0x's to unarc and then rearc.  This option is  not
  649.         as  accurate  as convert_pak2.  This option looks to see  if  the
  650.         string "Implode" exists in the pkunzip -v output.  If so the  zip
  651.         file is assumed to be a 1.0x.  Since not all files implode,  some
  652.         1.0x zip files will be converted.  Both of these options are used
  653.  
  654.  
  655.                                    10
  656.  
  657.  
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.         to  eliminate some unnecessary work and save the HD from  banging
  665.         around  more  than  needed.  No harm will  come  rearching  files
  666.         already  in  the destination format.  This option  requires  that
  667.         PKUNZIP  be in your path somewhere and not renamed.
  668.  
  669.         ===============                                        ==========
  670.         summary ON/off:                                        -Uon -Uoff
  671.         ===============                                        ==========
  672.         When set on this option gives you a display of how many bytes you
  673.         saved  (or  lost <grin>) when it is through,  and  the  effective
  674.         number  of bytes you saved in diskspace (which will certainly  be
  675.         negative if you are specifying more than one archiving method)...
  676.         It  also shows how much time was spent in the  archiving  process
  677.         (so you can compare different archivers), and how much total time
  678.         it took (ie archiving time + unarchiving time + time to load  and
  679.         change  dates  etc...).
  680.  
  681.  
  682.  
  683.  
  684.  
  685.  
  686.  
  687.  
  688.  
  689.  
  690.  
  691.  
  692.  
  693.  
  694.  
  695.  
  696.  
  697.  
  698.  
  699.  
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.                                    11
  722.  
  723.  
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731.         =====================
  732.         keep_smallest on/OFF:
  733.         =====================
  734.         If  the  new archive fails to beat the old archive  sizewise  and
  735.         keep_smallest is on, the old archive will remain and the new  one
  736.         will  be  deleted.  If you specify more than one  arching  method
  737.         then  the smallest of the group (including the old archive)  will
  738.         remain....   With  this option on, you  ensure  yourself  optimum
  739.         space  savings; however, consistency (as in one archive fits  all
  740.         files)  is lost (which might irritate BBS users).  Currently,  it
  741.         is a fairly tight race between LHARC, PKZIP and PAK...
  742.  
  743.         ======================
  744.         keep_old on/off/BENCH:
  745.         ======================
  746.         This option specifies whether you want the old archive file to be
  747.         deleted  or not.  With keep_old ON, the old archive  will  always
  748.         remain undeleted, with OFF it will always be deleted (unless  you
  749.         are converting to itself) and with BENCH, it will keep it if  you
  750.         specify 2 or more arching methods, otherwise delete it
  751.  
  752.         ======================                              =============
  753.         file_list <file_name>:                              -L<file_name>
  754.         ======================                              =============
  755.         Specifies  a  file  that  holds a listing  of  your  files.   For
  756.         example, opus uses FILES.BBS to hold all the files available  for
  757.         download.  By using the option, all occurrences of the  old  file
  758.         name will be replaced with the new file name.  This option is not
  759.         the  fastest.  If you have a ramdrive, it would be beneficial  to
  760.         move that file list file over there temporarily while converting.
  761.         It works with Opus, RBBS, and Gt-Powercomm file listings...   You
  762.         take your chances otherwise.... You may specify more than one  in
  763.         your  .cfg  file  and it will fix all specified  files.   The  -L
  764.         command  line  parameter  adds to the list of  files  to  convert
  765.         instead of replacing it.
  766.  
  767.         ==================
  768.         execute <command>:
  769.         ==================
  770.         If  you include this, CONVERT will execute <command> right  after
  771.         each  unarchive takes place.  ASCAN can be placed here  to  check
  772.         for  viruses.   Other useful execute  statements  are  redirected
  773.         directory  listings,  directory sorters to get the files  in  the
  774.         order you want them in, and deleting .BAK files.  I am sure there
  775.         are  other uses.  You can use as many execute statements  as  you
  776.         need.   It  will  execute them all in the  order  you  have  them
  777.         listed.
  778.  
  779.         =================
  780.         ram_drive <path>:
  781.         =================
  782.         Lets you specify a faster work directory.  If the compressed file
  783.         is  10% or less of the size of the ram drive, the ram drive  will
  784.         be  used instead of the current directory (or work  directory  if
  785.  
  786.  
  787.                                    12
  788.  
  789.  
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796.         you  specified  one).  10% is a little conservative,  but  better
  797.         safe  that  sorry.  A future version may be able to  make  better
  798.         guesses.  If you run ASIZE, it will give you the best compression
  799.         obtained  by any of the compressed files.  If any are  below  10%
  800.         don't  use  the ramdrive option.  Recursive archives  can  effect
  801.         this number from ASIZE since it doesn't check recursion.
  802.  
  803.         ==========================
  804.         -#<n> Command line option:
  805.         ==========================
  806.         If  you have specified this parameter, then it will  select  only
  807.         the nth archiving method to convert to.  The online convertor  in
  808.         view will make use of this option in the next version.
  809.  
  810.         ==========================
  811.         -N<n> Command line option:
  812.         ==========================
  813.         If  you do not wish to do the whole directory, this  option  will
  814.         allow  you  to  specify how many files it is  to  convert  before
  815.         stopping.   If  you  run a BBS you can put  this  in  your  daily
  816.         maintenance and do only a handful a day.  Be careful to use  this
  817.         option only when you are not converting to the same archive type.
  818.         If  you do this it will convert the same first n files each  time
  819.         you run CONVERT.  The Convert_zip1 and Convert_pak2 options  will
  820.         alleviate this to a degree.
  821.  
  822.         =================
  823.         Other .CFG files:
  824.         =================
  825.         The  two  other  cfg files that come with AU  are  bench.cfg  and
  826.         online.cfg.   Both  are used only by CONVERT.  Bench is  used  to
  827.         compare  the different archivers for compressability  and  speed.
  828.         Use  this  CFG  only on a small number of  files  since  it  will
  829.         consume  a lot of disk space.  Online.cfg will be used when  VIEW
  830.         calls CONVERT when the online convertor option is called.
  831.  
  832.         CAUTION!:  Don't be foolish.  Backup your files.  If  this  fails
  833.         for  some  reason,  it  does have the  potential  to  erase  your
  834.         directory.  One person lost some files because he was running  it
  835.         in a DDOS partition with not enough memory.  I ran some tests and
  836.         LHARC  starts to die when you have less than 250K.  PAK  and  ZIP
  837.         have unarching thresholds about 50K less than this.  To be  safe,
  838.         don't  run it under Double Dos or in a partition with  less  than
  839.         300K.   Make a temporary directory and copy a few archived  files
  840.         over to it and try CONVERT on that temporary directory before you
  841.         try  it  on  the real thing.  Also, make  sure  you  have  enough
  842.         diskspace  left to unarchive the largest file you are  converting
  843.         and then some.
  844.  
  845.         Other than that.  Simply type:
  846.  
  847.         CONVERT [command line options] [file_spec] [work directory]
  848.  
  849.         If the file_spec is left blank it will convert the whole  current
  850.         directory.   Wildcards  are allowed if you want to  convert  only
  851.  
  852.  
  853.                                    13
  854.  
  855.  
  856.  
  857.  
  858.  
  859.  
  860.  
  861.  
  862.         part  of  the directory.  The file_spec can also  take  a  source
  863.         directory  so  you can convert from a different  directory.   The
  864.         work  directory  is a directory you want the  unarching  to  take
  865.         place in.  This is useful if you are converting floppies and want
  866.         some  additional speed, or the drive you are working on is  about
  867.         out of diskspace.  (This should also work if you have a  ramdrive
  868.         and  you  are careful to choose files that aren't too  large  for
  869.         it.)   If  no work directory is specified, it  uses  a  temporary
  870.         directory off your current directory.  Convert will only  process
  871.         files with the extensions you specified in the .CFG file (and the
  872.         self  extractors  if you specified) and won't  fiddle  with  your
  873.         other files.  If your directory(s) are large, plan on it taking a
  874.         while, even on a fast machine.
  875.  
  876.         *****************************************************************
  877.         VIEW:
  878.         =====
  879.  
  880.         This  program allows you to view text files (and other  files  if
  881.         you so desire) that are inside archive files.  Unarchiving  still
  882.         needs  to  take  place to get at those text files,  so  the  same
  883.         things  apply  here as did in UNARC.  The benefit of  using  this
  884.         program  is  that once again, you don't have to remember  how  to
  885.         unarchive different formats.  Additionally, the files are brought
  886.         up  in  a  menu  and  you  simply  have  to  choose  the   number
  887.         corresponding to the file you want to look at.  The program  also
  888.         cleans  up  behind itself which also saves you effort.   As  with
  889.         UNARC  and CONVERT, this program also runs off the  AU.CFG  file.
  890.         Its  section  looks  like  UNARC's, with  the  exception  of  the
  891.         switches.
  892.  
  893.         =====================
  894.         work_drectory <path>:
  895.         =====================
  896.         VIEW  copies  the archive file to a work directory to  make  sure
  897.         that  you  do not damage your original.   This  option  specifies
  898.         where that work directory is.  If you have a ramdrive, then it is
  899.         to your advantage to specify it as the work_directory.  Doing  so
  900.         will  increase  the speed and save wear and tear on the  ol  Hard
  901.         Drive.   If you are using a ramdrive,  you may run  across  files
  902.         that  are  too large to completely unarc.  They  will  simply  be
  903.         chopped off.  VIEW creates a temporary sub-directory (conv89) off
  904.         your  work_directory and uses it.  If you do not specify  a  work
  905.         directory, it creates a subdrectory off your current directory.
  906.  
  907.         ==============
  908.         avoid_listing:
  909.         ==============
  910.         Specifys  the  extensions  that will be ignored  by  the  viewer.
  911.         Typically .COM and .EXE files are two you would not want to view.
  912.         You may specify more than one by either sticking them on the same
  913.         line with no spaces between them, or by putting them on  seperate
  914.         lines... ie:
  915.  
  916.         avoid_listing .COM
  917.  
  918.  
  919.                                    14
  920.  
  921.  
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928.         avoid_listing .EXE    or
  929.  
  930.         avoid_listing .COM.EXE
  931.  
  932.         ================
  933.         external_lister:
  934.         ================
  935.         Allows  you  chose  a  different  lister  than  the  limited  one
  936.         included,  such as Browse or List.
  937.  
  938.         To run it locally, simply type:
  939.  
  940.         VIEW [command line options] <file spec>
  941.  
  942.         It will bring up a list of files matching your file specs.  These
  943.         files can be archives file or non-archive files, it doesn't care.
  944.         If  you  select one that wasn't an archive  it  will  immediately
  945.         display it, otherwise it will unarc that file and bring up a list
  946.         of  what it decomposed into.  It will go as many levels  deep  as
  947.         necessary.    Unarchiving   takes  time  (LHARC   and   PAK   are
  948.         particularly  bad)  so don't be alarmed if it takes a  moment  to
  949.         bring  up that list.  If you do not use an external file  listing
  950.         program, View will display 23 lines at a time followed by a pause
  951.         for  a  keystroke.. 'Y' continues the printout,  'N'  aborts  the
  952.         printout, and 'C' prints it continuously without any more pauses.
  953.  
  954.         *****************************************************************
  955.         TEST:
  956.         =====
  957.  
  958.         This  program allows you to test your archive files to make  sure
  959.         they  are  not  corrupt.  Its creation was  prompted  by  an  SDS
  960.         distributer  who  wanted  to catch bad  files  before  they  were
  961.         automatically sent (long distance).
  962.  
  963.         It  works  like unarc with a few exceptions.  1 -  the  unarching
  964.         methods   are  replaced  with  testing  methods.  2  -   Recurse,
  965.         Delete_Behind,  and destination directories options  don't  exist
  966.         (You  don't  need  them).  3 -  Self  extracting  files  are  not
  967.         supported, indeed I doubt they can be.
  968.  
  969.         When  run, this program will rename all of the bad archive  files
  970.         to  an  extension of .BAD.  The good ones will remain  the  same.
  971.         Like  unarc,  you  can  specify  a  source  directory.   ie  TEST
  972.         d:\uploads\*.*
  973.  
  974.         TEST exits with an errorlevel of 1 if any .BAD files exist in the
  975.         directory when it is finished, 0 otherwise.
  976.  
  977.         *****************************************************************
  978.         HEADER:
  979.         =======
  980.         This program lets you add or replace header comments in  archived
  981.         files.   HEADER uses AU.CFG file like the previous utilities  and
  982.         has the following options:
  983.  
  984.  
  985.                                    15
  986.  
  987.  
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994.  
  995.         Smart_mode  is  supported like all the rest.   Date_retain  works
  996.         exactly  the  way  it does in convert with  all  4  options.   It
  997.         defaults  to  ON.   The -C command option  lets  you  specify  an
  998.         alternative .cfg file
  999.  
  1000.         Self-extracting files are not supported at this time.
  1001.  
  1002.         I have only played with archive comments a little bit so far  and
  1003.         only know how to get good results with .ZIP and .PAK files.  .PAK
  1004.         files  echo @file | PAK h.  The rest use redirection. .ZIP  files
  1005.         sense multiple lines, the rest of the archivers max out at 1 line
  1006.         so  I am sure I have plenty of work left to do on  this  utility.
  1007.         If  you  are  versed in archive comments for  any  of  the  other
  1008.         archivers,  send me a note on how to get multiple lines and  save
  1009.         me some time.
  1010.  
  1011.         ===================
  1012.         header_file <file>:
  1013.         ===================
  1014.         This  specifies the file(s) that contain the comment(s) you  want
  1015.         to  be redirected into your archive files.  If you  specify  more
  1016.         than  one, then it chooses between them randomly.  Use full  path
  1017.         names  with  the file name.  Specify a file  that  is  completely
  1018.         empty  if you are looking to rid yourself of comments  completely
  1019.         (which  will save disk space).  If you are adding large  comments
  1020.         (known  as BBS ads) to many files, make sure you have  sufficient
  1021.         space left.
  1022.  
  1023.         *****************************************************************
  1024.         ASCAN:
  1025.         ======
  1026.         This  utility  lets  you scan a directory  full  of  files  (both
  1027.         archive and otherwise) for viruses.  It unarcs the archives  then
  1028.         virus  scans the files.  Provided you use UNARC as the  unarching
  1029.         tool,  it  can find viruses inside recursive  archives,  archives
  1030.         with  non standard extensions (ie .SDN) and self extractors.   If
  1031.         it  does  find a virus, it will rename the archive file  with  an
  1032.         extension  of .$V$.  ASCAN takes an optional file_spec where  you
  1033.         can  specify  path  and file(s) to be  scanned.   It  returns  an
  1034.         errorlevel of 1 if any .$V$ files are left in the directory  when
  1035.         it is finished.
  1036.  
  1037.         ======================================
  1038.         Scanner <executable_file plus options>
  1039.         ======================================
  1040.         Specifies the virus scanner you wish to use.  Recommended is SCAN
  1041.         by  McAfee.  Note that the /nomem option in the AU.CFG file  only
  1042.         works  with versions 51 and later.  The scanner you  choose  must
  1043.         (like  SCAN)  return an errorlevel greater than 0 if a  virus  is
  1044.         found.
  1045.  
  1046.         ================                                      ===========
  1047.         version <number>                                      -V <number>
  1048.         ================                                      ===========
  1049.  
  1050.  
  1051.                                    16
  1052.  
  1053.  
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060.         This  option  allows you to specify which version  of  the  virus
  1061.         scanner  you are  using (ie -V63 is the most current  version  of
  1062.         SCAN  at this time).  If you specify a version, then  ASCAN  will
  1063.         mark the files it checks by changing the files time.  If the time
  1064.         of  the file is critical for some other reason, then  don't   use
  1065.         this option.  The seconds get set to 0, and the hour and  minutes
  1066.         are used to hold the version.  The hour is set to version/60, the
  1067.         minutes  are set to the remainder of that division.  The  version
  1068.         must be a whole number (ie 1.20 isn't going to cut it)
  1069.  
  1070.         ===================                                    ==========
  1071.         newer_than <number>                                    -N<number>
  1072.         ===================                                    ==========
  1073.         This  option specifies the number of versions of SCAN  that  have
  1074.         passed  before the file is scanned again.  For example,  if  -V53
  1075.         and  -N5 are used, only files scanned with V48 and below (or  not
  1076.         yet  scanned) will be rescanned.  To be rigorous, use -N1  as  it
  1077.         will make sure that files scanned under even the previous version
  1078.         will be looked at again.  Scan takes time on huge directories  so
  1079.         specifying  a  reasonable  number like 5  will  keep  your  virus
  1080.         protection reasonably up to date.  -V must be used if -N is to be
  1081.         used.   Without  it,  ASCAN  will  scan  all  the  archive  files
  1082.         specified.
  1083.  
  1084.         ======================================
  1085.         unarcer <executable_file plus options>
  1086.         ======================================
  1087.         Lets  you  specify  which  program  is  to  unarcive  the  files.
  1088.         Naturally  I put UNARC in there.  If you feel inclined to  use  a
  1089.         different program, make sure it allows a destination directory.
  1090.  
  1091.         ========================
  1092.         -W  Command line option:
  1093.         ========================
  1094.         This option lets you specify a work directory for ASCAN.  If  you
  1095.         have  a sufficiently large ram drive, it is recommended  you  use
  1096.         it,  as it will save time and save on HD wear and tear.   Another
  1097.         good usage of this option is if the drive you are scanning is all
  1098.         but  full.  ASCAN currently doesn't check to make sure  the  work
  1099.         directory  has  enough  room for the file to  unarc  in,  so  the
  1100.         possibility exists that it will miss files.
  1101.  
  1102.  
  1103.         ========================
  1104.         -A  Command line option:
  1105.         ========================
  1106.         This  is an on/off switch (ie -Aon -Aoff) that specifies  whether
  1107.         you  want  the scanner to look inside of archives  or  not.   The
  1108.         default  is  ON and this is what you will use most of  the  time.
  1109.         The  off switch is valuable when used with CONVERT and  recursion
  1110.         on  (in CONVERT).  This will help speed things along for it  wont
  1111.         do any redundant checking.
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.                                    17
  1118.  
  1119.  
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.         It executes as:
  1127.  
  1128.         ASCAN [command line options] [file_spec]
  1129.  
  1130.         *****************************************************************
  1131.         The rest of the programs do not use the configuration file.
  1132.         *****************************************************************
  1133.         REDATE:
  1134.         =======
  1135.  
  1136.         This program allows you to change the date on any archive file to
  1137.         the  date  of either the most recent or the oldest  file  in  the
  1138.         archive  without  having to unarc the file.  This  program  moves
  1139.         rather  quickly  and  can do entire directories in  a  matter  of
  1140.         minutes.   It is used like unarc with the following  differences.
  1141.         No  .CFG  file is necessary since the code to pick  apart  the  v
  1142.         option output is hard wired.  It excepts any legal dos  wildcards
  1143.         and    also   excepts   a   source   directory.    ie.     REDATE
  1144.         \download\ibm\f*.lzh.   No  destination directory  is  necessary.
  1145.         Use  -S  for  smart  on/off/always.   It  now  works  with   self
  1146.         extractors  as well (which take a considerably longer  time  than
  1147.         regular archives).  Use -Xon on the command line for this.
  1148.  
  1149.         There  is no segment in the AU.CFG file, and therefore it has  to
  1150.         assume that the archives can be executed as such:
  1151.  
  1152.         LHARC
  1153.         PAK       <-- Used to do the .ARC files as well
  1154.         DWC
  1155.         ZOO
  1156.         PKUNZIP
  1157.  
  1158.         ==================================
  1159.         -W<directory> command line option:
  1160.         ==================================
  1161.         lets  you specify a temporary work directory that the  -v  output
  1162.         goes to.  Specifying a ramdrive will give you a significant speed
  1163.         increase, plus save wear and tear on your drive.
  1164.  
  1165.         =======================
  1166.         -L command line option:
  1167.         =======================
  1168.         selects the option to set the date to the lowest (or oldest) date
  1169.         in  the archive file.  This and -H do not take a value  following
  1170.         them.  -L is sufficient.
  1171.  
  1172.  
  1173.         =======================
  1174.         -H command line option:
  1175.         =======================
  1176.         selects  the  option  to set the date to  the  highest  (or  most
  1177.         recent) date in the archive file.  This is the default
  1178.  
  1179.  
  1180.  
  1181.  
  1182.  
  1183.                                    18
  1184.  
  1185.  
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.         *****************************************************************
  1193.         ASIZE:
  1194.         ======
  1195.         This  program  allows you to find out how many bytes  are  packed
  1196.         away  inside your archived files.  Although not the  most  useful
  1197.         utility ever made, it does serve to satiate your curiosity.  When
  1198.         finished,  it displays a table of how many bytes you have  stored
  1199.         in  each  of the main 7 archive types, files in  self  extracting
  1200.         archives (if -Xon is used), and files not archived (ie everything
  1201.         else).   It is not recursive and the total bytes and  percentages
  1202.         do not reflect archives within archives.
  1203.  
  1204.         It is used as follows:
  1205.  
  1206.         ASIZE [parameters] [file spec]
  1207.  
  1208.         -W,  -S  and -X  are the allowed options for  ASIZE.   Just  like
  1209.         REDATE, -W specifies a temporary directory to dump the -v  output
  1210.         to.  -S is smart_mode on/off, -X is self_extracts on/off.
  1211.  
  1212.         The  [file  spec]  can  be either a regular  DOS  file  spec  (ie
  1213.         drive,  path,  file(s))  or  can be a @ file.   This  is  a  file
  1214.         containing  as  many file specs as you want.  For  example,  Opus
  1215.         sysops  can copy their okfile.lst to files.dat, remove the  magic
  1216.         filenames,  passwords and other non-DOS stuff in  the  files.dat,
  1217.         then  run ASIZE @files.dat.  This should size up all  the  sysops
  1218.         download  directories.  The @ feature is not recursive (ie the  @
  1219.         file can't contain @ files within it).
  1220.  
  1221.         Like  REDATE, there are no .cfg file options and the 5  archiving
  1222.         programs must not be renamed.  This program was made to use  only
  1223.         the most recent version of those 5 (LHARC 1.13c, PAK 2.10,  PKZIP
  1224.         1.x, DWC 5.01, ZOO 2.01), so using older versions like PKZIP 0.92
  1225.         may or may not work (I will test them sooner or later)...
  1226.  
  1227.         ASIZE  will  show  incorrect  results  if  any  of  the   figures
  1228.         (compressed  or uncompressed including the total)  exceeds  about
  1229.         2.1  gigabytes.  Most people don't have this much, but give it  a
  1230.         few years......
  1231.  
  1232.         *****************************************************************
  1233.         DUPES:
  1234.         ======
  1235.  
  1236.         This  program is a tool to help you find duplicate files.  It  is
  1237.         not concerned with the name of the file but rather the  contents.
  1238.         It  picks open files, then stores in memory 20 bytes  taken  from
  1239.         the  file in 5% increments.  When finished, it displays  all  the
  1240.         files that have these same 20 bytes.  This is not a sure fire way
  1241.         to find duplicates, but it should be 99.9 accurate and a messload
  1242.         faster than running a full file compares.  It does not remove  or
  1243.         otherwise modify the files it found as possilbe duplicates.   All
  1244.         it does is spit out a report.
  1245.  
  1246.         It  calls UNARC to open up archived files and proceeds  to  check
  1247.  
  1248.  
  1249.                                    19
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.         all the files inside as well.  The archive name + file inside are
  1259.         both held onto and reported if a duplicate is found.  It is quite
  1260.         thorough  and  calls UNARC with recurse on.  Even  the  .LZH  and
  1261.         other compressed files are included in the checking
  1262.  
  1263.         ======================
  1264.         -A command line option
  1265.         ======================
  1266.         is an on/off switch that lets you specify whether it should  look
  1267.         inside archives or not.  It defaults to on, but you might want to
  1268.         just scan for duplicate .LZH files and whatnot.
  1269.  
  1270.         ======================
  1271.         -O command line option
  1272.         ======================
  1273.         Tells DUPES where you want your output to go.  You should specify
  1274.         one so in case you do have many many duplicates they won't scroll
  1275.         off the screen on you.
  1276.  
  1277.         If you want to execute it on one directory only.  Simply type
  1278.  
  1279.         DUPES [command line options] [file_spec]
  1280.  
  1281.         the file_spec defaults to *.*.
  1282.  
  1283.         To get multiple directories use
  1284.  
  1285.         DUPES [command line options] @file.
  1286.  
  1287.         The @file works exactly the same way it does in ASIZE.  Refer  to
  1288.         that section.
  1289.  
  1290.         DUPES  stores all its info in memory at this time so there  is  a
  1291.         limited  amout of files you can scan.  I figure it is  around  2-
  1292.         3000  files (including the pieces of the arc files) if  you  have
  1293.         640K.  It resevers 150K if you searching through arcs (enough  to
  1294.         call  unarc) and 16K if you are not (enough to run  COMMAND.COM).
  1295.         If  it does run out it will still report on what it has found  up
  1296.         to that point.
  1297.  
  1298.         A  future  version will keep the info in a data file so  you  can
  1299.         check a heftier number of files.
  1300.         *****************************************************************
  1301.         BBSweep:
  1302.         ========
  1303.         This  program  allows you to execute a command  on  all  download
  1304.         directories  for either OPUS or GT-Powercomm (will be trying  for
  1305.         RBBS  too  next  version).  BBSWEEP must  be  executed  from  the
  1306.         directory  in which the system*.bbs files reside (in the case  of
  1307.         OPUS)  or  the  gtdir.bbs  file  resides  (in  the  case  of  GT-
  1308.         Powercomm).   Although not so much a utility based  on  archiving
  1309.         programs, it still interfaces nicely with TEST, HEADER,  CONVERT,
  1310.         REDATE  and ASCAN.  You can also use it with ASIZE, but you  will
  1311.         have  to add up the totals for a grand total (thus the  @file  in
  1312.         ASIZE).   Additionally, you can do things such as:
  1313.  
  1314.  
  1315.                                    20
  1316.  
  1317.  
  1318.  
  1319.  
  1320.  
  1321.  
  1322.  
  1323.  
  1324.  
  1325.         BBSWEEP FILL *.* A:
  1326.         BBSWEEP DIR }}c:\listing\files.lst
  1327.         BBSWEEP del *.bak
  1328.                 ^^^
  1329.         *** PLEASE Use extreme care with DEL ***
  1330.  
  1331.         and so forth..  Officially it executes as such
  1332.  
  1333.         BBSWEEP [options] command [parameters for that command]
  1334.  
  1335.         In this case, the options that BBSWEEP uses MUST come before  the
  1336.         command because the command may have parameters that look exactly
  1337.         like  the  options for BBSWEEP.  -Bon/off  specifies  whether  to
  1338.         break  and  wait  for  a keypress before  changing  over  to  the
  1339.         directory  to  run  the  command on.  When  it  does  ask  for  a
  1340.         keystroke,  pressing control C will abort the  program  entirely.
  1341.         The  process  may  also  be stopped  by  pressing  any  key  then
  1342.         answering  N  to the continue question much like they  way  UNARC
  1343.         works.   However the command you are running may  "consume"  your
  1344.         keystrokes and so the -B was introduced.
  1345.  
  1346.         The  -G, -L, and -P are used to define the character you wish  to
  1347.         set  up as the greater than, less than, and pipe  (|)  characters
  1348.         respectively.   >,  <, and | when used in the  command,  such  as
  1349.         BBSWEEP  DIR | SORT  apply to the entire command.  In  this  case
  1350.         the  entire  contents  of BBSWEEP DIR is  dumped  into  the  SORT
  1351.         filter  because DOS grabbed the | and BBSWEEP never even  got  to
  1352.         look  at it.  If you need the | SORT to apply to  each  directory
  1353.         then  you  need  to  specify  a  character  which  BBSWEEP   will
  1354.         internally convert to the |.  DOS does the same thing with >  and
  1355.         < so the same thing applies.  The defaults that BBSWEEP uses  are
  1356.         } for >, { for <, and ~ for |.   The internal },{ and ~  override
  1357.         the external >,< and |,  so doing something like:
  1358.  
  1359.         BBSWEEP DIR *.LZH }}temp.dat >temp1.dat
  1360.  
  1361.         will put the directory contents in temp.dat and the BBSWEEP title
  1362.         and  messages  in  temp1.dat.   Note the use of  }}  for  >>.
  1363.  
  1364.         ******************************************************************
  1365.         Future Releases:
  1366.         ================
  1367.  
  1368.         1.13  - DUPES that will handle a larger number of files.
  1369.  
  1370.         1.13  - An option in convert to add to file_listing file if there
  1371.         are no matches found
  1372.  
  1373.         Front   end  file  selecter  menu  driven  type   doohicky   like
  1374.         ArcMaster's and those other shareware product.  (Tentative  until
  1375.         I  can think of ways to outdo Shez and others)
  1376.  
  1377.         and of course, and other good suggestions you the users can think
  1378.         of.........
  1379.  
  1380.  
  1381.                                    21
  1382.  
  1383.  
  1384.  
  1385.  
  1386.  
  1387.  
  1388.  
  1389.  
  1390.  
  1391.         Last But Not Least:
  1392.         ===================
  1393.         A  thousand thanks to the beta testers John Alton, Ray  Waechter,
  1394.         Ed Cavender, Brandon Bachman, and Michael Epler, for taking  time
  1395.         to beta test these programs (which have been in less than working
  1396.         order at times), find bugs, and suggest improvements......
  1397.  
  1398.  
  1399.  
  1400.  
  1401.  
  1402.  
  1403.  
  1404.  
  1405.  
  1406.  
  1407.  
  1408.  
  1409.  
  1410.  
  1411.  
  1412.  
  1413.  
  1414.  
  1415.  
  1416.  
  1417.  
  1418.  
  1419.  
  1420.  
  1421.  
  1422.  
  1423.  
  1424.  
  1425.  
  1426.  
  1427.  
  1428.  
  1429.  
  1430.  
  1431.  
  1432.  
  1433.  
  1434.  
  1435.  
  1436.  
  1437.  
  1438.  
  1439.  
  1440.  
  1441.  
  1442.  
  1443.  
  1444.  
  1445.  
  1446.  
  1447.                                    22
  1448.  
  1449.  
  1450.  
  1451.  
  1452.  
  1453.