home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / fileutil / clnup200.arj / CLEANUP.DOC < prev    next >
Encoding:
Text File  |  1990-01-27  |  54.0 KB  |  2,113 lines

  1.  
  2.  
  3.      CleanUp Version 2.00      Jan 27, 1990                     Page 1
  4.  
  5.  
  6.  
  7.      1   PURPOSE
  8.  
  9.      CleanUp is a program designed to help you keep your disk clean of all
  10.      the temporary, backup and other miscellaneous files that accumulate
  11.      during normal processing.  CleanUp can delete these files or process
  12.      them with any command you choose.  CleanUp can also run commands on
  13.      each disk and sub-directory to automate your maintenance.
  14.  
  15.      CleanUp uses file specifications that you enter into a control file to
  16.      search all the sub-directories on your hard disk for files to process.
  17.      You can have CleanUp process the files it finds automatically or
  18.      prompt you before processing the file. Any number of specifications
  19.      can be entered and any number of sub-directories can be searched
  20.      (subject to the amount of memory you have available).
  21.  
  22.      CleanUp can be run in "interactive" mode or from a batch file in
  23.      "automatic" mode for use during unattended maintenance.
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.      Copyright Bob Breedlove 1989,90               All rights reserved
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      CleanUp Version 2.00      Jan 27, 1990                     Page 2
  71.  
  72.  
  73.  
  74.      2   REGISTRATION
  75.  
  76.      CleanUp is copyright (c) Bob Breedlove, 1989, 1990. All rights are
  77.      reserved. It is NOT free software. Should you continue to use CleanUp,
  78.      please send $10 registration along with your name, address and
  79.      telephone number to:
  80.  
  81.           Bob Breedlove
  82.           3196 Swallowsnest Dr.
  83.           Sacramento, CA 95833
  84.  
  85.      You can use the registration form at the end of this documentation if
  86.      you wish.  Sorry, registration by phone or credit card not available.
  87.  
  88.      You may use CleanUp on any number of computers that YOU, PERSONALLY
  89.      USE.  If you are registering CleanUp for a company, you MUST register
  90.      CleanUp for each workstation or send a $100.00 site license fee to
  91.      allow you to use any number of copies of CleanUp at your SINGLE SITE.
  92.  
  93.      CleanUp may NOT be distributed with other software or as part of any
  94.      other package.  If you distribute shareware diskettes for money, you
  95.      MUST obtain written permission from the author before distributing
  96.      CleanUp.
  97.  
  98.      Because of the nature of CleanUp and available time, only registered
  99.      users will qualify for support.
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.      Copyright Bob Breedlove 1989,90               All rights reserved
  132.  
  133.  
  134.  
  135.  
  136.  
  137.      CleanUp Version 2.00      Jan 27, 1990                     Page 3
  138.  
  139.  
  140.  
  141.      3   WARRANTY
  142.  
  143.      CleanUp has been tested as thoroughly as possible. However, there is
  144.      no guarantee, either stated or implied that it is suitable for your
  145.      specific use or with your specific equipment. The author, Bob
  146.      Breedlove, cannot be held responsible for any damage or loss of data
  147.      resulting either directly or indirectly from the use of CleanUp.
  148.  
  149.      BEFORE RUNNING CleanUp FOR THE FIRST TIME, BE SURE TO BACKUP ALL
  150.      CRITICAL FILES ON YOUR HARD DISK(S).  This is especially important
  151.      when you first set up your control file.
  152.  
  153.      If you are a registered CleanUp user, you will receive telephone and
  154.      mail support for the product.  In addition, you will be set up with an
  155.      account on BOBsBBS for on-line support.  
  156.  
  157.      NON-REGISTERED USERS CANNOT RECEIVE SUPPORT FOR PROBLEMS WITH CleanUp
  158.      AND THEIR SPECIFIC EQUIPMENT.
  159.  
  160.  
  161.      4   A WARNING!
  162.  
  163.      CleanUp has the potential to completely DESTROY your disk.  PLEASE
  164.      take the precaution of backing up your disk BEFORE you use CleanUp. 
  165.      This is especially important when you first set up a CleanUp control
  166.      file.
  167.  
  168.  
  169.      5   NETWORK DISKS
  170.  
  171.      CleanUp should work on network disks with some exceptions.  CleanUp
  172.      has to have access to the sub-directories on your network disks.  If
  173.      CleanUp cannot get access to the root directory ({drive}:\) then it
  174.      cannot process the disk because it cannot construct a list of
  175.      sub-directories to process.  This situation can happen if the root
  176.      directory on your hard disk is protected from access.
  177.  
  178.      CleanUp SHOULD process disks correctly if some of the sub-directories
  179.      (other than the root) are protected from access.  The protected
  180.      directories and their sub-directories will NOT be processed.
  181.  
  182.      Since I do not have access to a network, I cannot test these features
  183.      of CleanUp.  If you register the software and have problems running it
  184.      on your network, I will work with you.
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.      Copyright Bob Breedlove 1989,90               All rights reserved
  199.  
  200.  
  201.  
  202.  
  203.  
  204.      CleanUp Version 2.00      Jan 27, 1990                     Page 4
  205.  
  206.  
  207.  
  208.      6   FILES
  209.  
  210.      The following files should be on the CleanUp diskette or in the
  211.      archive file that you received:
  212.  
  213.           CleanUp.EXE    The CleanUp Program
  214.           CleanUp.CTL    A sample control file.
  215.           CleanUp.DOC    This documentation
  216.           EDITOR.CMD     A "cheat sheet" of editor commands.
  217.           READ.ME        Additional comments, new features
  218.  
  219.      NOTE: The READ.ME file will ONLY be included when there is additional
  220.      information about the current release of CleanUp or other BOBsWARE
  221.      products which is not included in the documentation (CleanUp.DOC).
  222.  
  223.      If you received these files from a bulletin board system and the file
  224.      is not complete or contains other files, BE VERY CAUTIOUS!  The
  225.      program may have been tampered with.
  226.  
  227.      The only files necessary to run CleanUp are CleanUp.EXE and
  228.      CleanUp.CTL or other control file.
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.      Copyright Bob Breedlove 1989,90               All rights reserved
  266.  
  267.  
  268.  
  269.  
  270.  
  271.      CleanUp Version 2.00      Jan 27, 1990                     Page 5
  272.  
  273.  
  274.  
  275.      7   Starting CleanUp
  276.  
  277.      7.1  Introduction
  278.  
  279.      Before you can run CleanUp, you must create a control file --
  280.      default "CleanUp.CTL".  See the section -- The Control File --
  281.      for details on creating CleanUp.CTL.
  282.  
  283.      CleanUp.EXE and the control file are the only files required to
  284.      run CleanUp. They can be placed anywhere on your path. If you are
  285.      unfamiliar with the DOS PATH command, please refer to your DOS
  286.      documentation.
  287.  
  288.  
  289.      7.2  The CleanUp Command Line
  290.  
  291.      To run CleanUp, use the following command line:
  292.  
  293.           CleanUp [[{path}]{ControlFileName}] [{switches}]
  294.  
  295.      {ControlFileName} is the name of the control file you wish to
  296.      use. If you do NOT enter the control file name, CleanUp will use
  297.      "CleanUp.CTL".  If you do not enter an extension CleanUp will use
  298.      the default extension "CTL".
  299.  
  300.      If you specify a complete path name for the control file, CleanUp
  301.      will search ONLY that directory. If you specify ONLY a filename
  302.      or do NOT specify the control file name, CleanUp will search the
  303.      current directory first. The current directory is the one that
  304.      you were in when you started CleanUp. If it can not find the
  305.      control file, CleanUp will search the DOS PATH for the file.
  306.  
  307.      If CleanUp cannot find the control file and you have NOT
  308.      specified any switches, CleanUp will abort.
  309.  
  310.      The following switches can be entered on the command line:
  311.  
  312.      /E  Edit the specified control file (or CleanUp.CTL if none is
  313.          specified) and then exit the program WITHOUT processing the
  314.          specified patterns and commands.
  315.  
  316.      /R  Edit the specified control file (or CleanUp.CTL if none is
  317.          specified) and then process the specified patterns and commands.
  318.  
  319.      If either switch is specified, CleanUp will create a new control file
  320.      if it can't find the one specified.
  321.  
  322.      NOTE: you can NOT enter a path name without the control filename. 
  323.      CleanUp will think that the last sub-directory in your path is the
  324.      control file and attempt to find that file.  For example:
  325.  
  326.           C:\BIN\CleanUp.CTL
  327.  
  328.      is valid, but
  329.  
  330.  
  331.  
  332.      Copyright Bob Breedlove 1989,90               All rights reserved
  333.  
  334.  
  335.  
  336.  
  337.  
  338.      CleanUp Version 2.00      Jan 27, 1990                     Page 6
  339.  
  340.  
  341.  
  342.  
  343.           C:\BIN
  344.  
  345.      is NOT. CleanUp will search for a file named "BIN.CTL" in the root
  346.      directory on the C: drive.
  347.  
  348.  
  349.      7.3  Examples
  350.  
  351.      C> CleanUp
  352.  
  353.      CleanUp will search for "CleanUp.CTL" in the current directory.
  354.      If it is not found, it will search for a control file with this
  355.      name along the DOS path.  If "CleanUp.CTL" is not found, the
  356.      program will terminate with an error message.
  357.  
  358.  
  359.      C> CleanUp Weekly.CTL
  360.  
  361.      CleanUp will search for the control file "Weekly.CTL" in the
  362.      current directory and along the path. It will terminate with an
  363.      error if the file is not found. This control file may be one of
  364.      many. Naming control files like this allows you to have one
  365.      control file for daily processing and another for weekly or
  366.      special processing.
  367.  
  368.  
  369.      C> CleanUp Weekly
  370.  
  371.      This is the equivalent of the command above.  CleanUp will use
  372.      the control file "WEEKLY.CTL".
  373.  
  374.      NOTE: if you wish to use a control file without an extension, you
  375.      must enter the filename followed by a period.  For example, to
  376.      use the control name "WEEKLY", enter "CleanUp WEEKLY.".
  377.                                               Note period^
  378.  
  379.  
  380.      C> CleanUp /E
  381.  
  382.      This version of the command line is used to edit CleanUp.CTL and
  383.      then terminate the program.  CleanUp will still search for
  384.      "CleanUp.CTL" in the current directory and along the path.
  385.      However, if it does not find an existing "CleanUp.CTL", it will
  386.      create one IN THE CURRENT DIRECTORY.
  387.  
  388.      When CleanUp starts you are placed in the full-screen editor.
  389.      When you exit the editor, CleanUp terminates.
  390.  
  391.      Equivalent lines are:
  392.  
  393.           C> CleanUp CleanUp /e
  394.           C> CleanUp CleanUp.CTL /e
  395.  
  396.  
  397.  
  398.  
  399.      Copyright Bob Breedlove 1989,90               All rights reserved
  400.  
  401.  
  402.  
  403.  
  404.  
  405.      CleanUp Version 2.00      Jan 27, 1990                     Page 7
  406.  
  407.  
  408.  
  409.      C> CleanUp /R
  410.  
  411.      This example is identical to that above ("CleanUp /E") with the
  412.      exception that CleanUp will process the control file instructions
  413.      once you have exited the editor.
  414.  
  415.  
  416.      C> CleanUp D:\UTILITY\CleanUp.CTL
  417.  
  418.      When you enter the full path name, CleanUp searches for the file
  419.      in the specified directory only. In this case, if CleanUp does
  420.      not find "CleanUp.CTL" in the directory "D:\UTILITY", it will
  421.      terminate with an error message. This feature allows you to
  422.      create control files with the same name in different directories
  423.      and process them as desired.
  424.  
  425.  
  426.      C> CleanUp C:\BIN\Daily.CTL /R
  427.  
  428.      CleanUp will search the directory "C:\BIN" for a control file
  429.      called "Daily.CTL". If it does not find one, it will create one
  430.      in "C:\BIN". CleanUp will put you in the editor to edit/create
  431.      the file and then execute the resulting control file. 
  432.  
  433.  
  434.      C> CleanUp C:\BIN\Daily.CTL /E
  435.  
  436.      This example is identical to the one above except that CleanUp
  437.      will NOT execute the instructions in "Daily.CTL" once you exit
  438.      the editor.
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.      Copyright Bob Breedlove 1989,90               All rights reserved
  467.  
  468.  
  469.  
  470.  
  471.  
  472.      CleanUp Version 2.00      Jan 27, 1990                     Page 8
  473.  
  474.  
  475.  
  476.      8   The CONTROL FILE (CleanUp.CTL)
  477.  
  478.      8.1  Introduction
  479.  
  480.      CleanUp's control file(s) is a plain MS-DOS ASCII text file. It
  481.      can be created using any text editor or word processor that does
  482.      NOT introduce format characters into the text. The easiest way to
  483.      create or modify CleanUp.CTL is to use CleanUp's built-in
  484.      full-screen text editor.
  485.  
  486.  
  487.      8.2  Format
  488.  
  489.      The CleanUp control file consists of lines in one of the
  490.      following formats:
  491.  
  492.      {session switch}
  493.      {disk/directory commands}
  494.      {filename pattern} [{switches}] [{command}]
  495.  
  496.      {session switch} is a command switch which affects the entire
  497.      CleanUp Process. {switches} which appear on the same line as a
  498.      {filename pattern} affect files matching that pattern ONLY. 
  499.      {disk/directory commands} are commands executed while processing
  500.      disks and directories.
  501.  
  502.      NOTE: Only ONE filename pattern per command line is allowed.
  503.  
  504.      Future versions of CleanUp may add features, however, they will
  505.      be downward compatible with existing command files.
  506.  
  507.  
  508.      8.3  Session Switches
  509.  
  510.      Session switches are placed one per command line. They affect the
  511.      entire CleanUp session.
  512.  
  513.  
  514.      8.3.1  /B (Batch Operation)
  515.  
  516.      When the /B session switch is detected, CleanUp will NOT pause
  517.      after completing execution. This is useful if you wish to run
  518.      CleanUp in unattended mode from a batch file.
  519.  
  520.  
  521.      8.3.2  /D (Disks to Process)
  522.  
  523.      This switch tells CleanUp which disks to process. If it is not
  524.      found, CleanUp will process the current disk.  You can list any
  525.      number of disks after the switch.  The format of this line is:
  526.  
  527.      /D {disk list}
  528.  
  529.  
  530.  
  531.  
  532.  
  533.      Copyright Bob Breedlove 1989,90               All rights reserved
  534.  
  535.  
  536.  
  537.  
  538.  
  539.      CleanUp Version 2.00      Jan 27, 1990                     Page 9
  540.  
  541.  
  542.  
  543.      The {disk list} is in the format of single letters. Do NOT leave
  544.      a space between the letters.  For example:
  545.  
  546.      /D CD
  547.  
  548.      would process disks C: and D:
  549.  
  550.      /D CDEFG
  551.  
  552.      would process disks C: through G:
  553.  
  554.      /D CDG
  555.  
  556.      would process disks C:, D:, and G: only
  557.  
  558.      NOTE: CleanUp does NOT check to be sure that there are disks in
  559.      removable media disk drives.  Be sure that you have set up all disks
  560.      before starting CleanUp.
  561.  
  562.  
  563.      8.4  DOS Commands
  564.  
  565.      CleanUp can execute a DOS command, program or batch file at the
  566.      following times during processing:
  567.  
  568.      o   Just before processing a disk
  569.      o   Just after processing a disk
  570.      o   Just before processing a sub-directory
  571.      o   Just after processing a sub-directory
  572.  
  573.      You may specify a single command for each situation.
  574.  
  575.      (NOTE: CleanUp will execute a command in place of deleting specific
  576.      filename patterns.  This capability is discussed in the section on
  577.      filename patterns.)
  578.  
  579.      The DOS command must be enclosed in quote marks (") when it contains a
  580.      space. The general format for these commands is:
  581.  
  582.      /{D|S|P}{+|-} [sub-directory (/P only)] ["]{command}["]
  583.  
  584.      {Command} is executed in a window.  Some programs may over-write this
  585.      window, however, most DOS commands will execute properly in the
  586.      window.  CleanUp has been tested with most DOS commands, however,
  587.      there is no guarantee that CleanUp can execute a specific program.
  588.  
  589.      The following paragraphs describe each of the command lines.
  590.  
  591.  
  592.      8.4.1  Command Substitutions
  593.  
  594.      When executing a command, CleanUp will perform  substitutions. 
  595.      These are discussed below.  In these discussions, the following
  596.      conditions exist for the examples:
  597.  
  598.  
  599.  
  600.      Copyright Bob Breedlove 1989,90               All rights reserved
  601.  
  602.  
  603.  
  604.  
  605.  
  606.      CleanUp Version 2.00      Jan 27, 1990                    Page 10
  607.  
  608.  
  609.  
  610.  
  611.      Current Disk:            C:
  612.      Current Sub-Directory:   C:\BIN
  613.      Current Filename:        TEST.BAK
  614.      Current Pattern:         *.BAK
  615.  
  616.  
  617.      %D - Current Disk
  618.  
  619.      Substitutes the drive LETTER only from the current drive. For
  620.      example, the command line:
  621.  
  622.           /D+ "SCAN %D:"
  623.  
  624.      would result in CleanUp executing
  625.  
  626.           SCAN C:
  627.  
  628.      When the C: drive is first accessed.
  629.  
  630.  
  631.      %S - Current Sub-directory
  632.  
  633.      Substitutes the current sub-directory path.  For example:
  634.  
  635.           /S+ "CATALOG %S"
  636.  
  637.      would execute
  638.  
  639.           CATALOG C:\BIN
  640.  
  641.      when starting the C:\BIN directory.
  642.  
  643.  
  644.      %F - Current Filename
  645.  
  646.      Substitutes the current filename and extension in the DOS
  647.      command.  For example:
  648.  
  649.           *.BAK "COPY $F C:\WORK"
  650.  
  651.      would cause CleanUp to execute:
  652.  
  653.           COPY TEST.BAK C:\WORK
  654.  
  655.      when TEST.BAK was processed instead of deleting the file.
  656.  
  657.  
  658.      %N - Current Filename--Name Only
  659.  
  660.      Substitutes ONLY the filename (no extension) in the command. For
  661.      example:
  662.  
  663.           *.BAK "COPY %F %N.HLD"
  664.  
  665.  
  666.  
  667.      Copyright Bob Breedlove 1989,90               All rights reserved
  668.  
  669.  
  670.  
  671.  
  672.  
  673.      CleanUp Version 2.00      Jan 27, 1990                    Page 11
  674.  
  675.  
  676.  
  677.  
  678.      would result in the command:
  679.  
  680.           COPY TEST.BAK TEST.HLD
  681.  
  682.      being executed when TEST.BAK was processed instead of deleting
  683.      the file.
  684.  
  685.  
  686.      %E - Current Filename--Extension Only
  687.  
  688.      Substitutes the file extension only (no filename).  For example:
  689.  
  690.           *.BAK "MAINTAIN %N %E"
  691.  
  692.      would pass the filename and extension to the batch file
  693.      MAINTAIN.BAT by executing the command line:
  694.  
  695.           MAINTAIN TEST BAK
  696.  
  697.  
  698.      %P - Current File Pattern
  699.  
  700.      Substitutes the current file pattern in the DOS command.  For
  701.      example:
  702.  
  703.           *.BAK "MAINTAIN %P"
  704.  
  705.      would pass the file pattern to MAINTAIN.BAT by executing
  706.  
  707.           MAINTAIN *.BAK
  708.  
  709.  
  710.      8.4.2  Disk/Directory Commands
  711.  
  712.      8.4.2.1  Introduction
  713.  
  714.      This set of commands affects how CleanUp processes disks and
  715.      sub-directories.  DOS commands can be executed before a
  716.      disk/directory is processed ("+") or after a disk/directory has
  717.      been processed ("-").
  718.  
  719.      For example, the command line:
  720.  
  721.           /D+ "SCAN %D:"
  722.  
  723.      would execute the program SCAN.EXE BEFORE CleanUp processed the
  724.      sub-directories on each disk.  The line:
  725.  
  726.           /D- "CATALOG %D:"
  727.  
  728.      would run the program CATALOG.EXE AFTER CleanUp had completed
  729.      processing all the sub-directories on a disk.
  730.  
  731.  
  732.  
  733.  
  734.      Copyright Bob Breedlove 1989,90               All rights reserved
  735.  
  736.  
  737.  
  738.  
  739.  
  740.      CleanUp Version 2.00      Jan 27, 1990                    Page 12
  741.  
  742.  
  743.  
  744.      A single command will be executed when entering and leaving each
  745.      disk and sub-directory.  If multiple "/D[+|-]" or "/S[+|-]"
  746.      commands are entered, only the LAST one will be executed.  If you
  747.      wish to execute multiple commands, place them in a batch file and
  748.      have CleanUp execute that.
  749.  
  750.  
  751.      8.4.2.2  Naming Sub-Directories
  752.  
  753.      Sub-directories on the /X and /P commands must be entered with
  754.      their full disk/directory names.  For example:
  755.  
  756.           /X C:\BIN
  757.  
  758.      or
  759.  
  760.           /P+ C:\WORK "CATALOG %S"
  761.  
  762.      are correct.  However,
  763.  
  764.           /X \BIN
  765.  
  766.      is NOT correct because it does not include the drive ("C:").  The
  767.      full disk and directory name is required because you may have
  768.      duplicate sub-directory names on different directories.  If only
  769.      sub-directory names are considered, CleanUp may process these
  770.      sub-directories incorrectly.
  771.  
  772.  
  773.      8.4.2.3  /D[+|-] (Disk Commands)
  774.  
  775.      Format:
  776.  
  777.           /D[+|-] ["]{DOS Command}["]
  778.  
  779.      This command specifies a DOS command to be executed before ("+")
  780.      or after ("-") CleanUp processes each disk.
  781.  
  782.      Examples:
  783.  
  784.           /D+ "SCAN %D:"
  785.           /D- "CATALOG"
  786.  
  787.  
  788.      8.4.2.4  /S[+|-] (General Sub-Directory Commands)
  789.  
  790.      Format:
  791.  
  792.           /S[+|-] ["]{DOS Command}["]
  793.  
  794.      This command will be executed before ("+") or after ("-") CleanUp
  795.      processes each directory unless it is overridden by a /P command.
  796.  
  797.      Examples:
  798.  
  799.  
  800.  
  801.      Copyright Bob Breedlove 1989,90               All rights reserved
  802.  
  803.  
  804.  
  805.  
  806.  
  807.      CleanUp Version 2.00      Jan 27, 1990                    Page 13
  808.  
  809.  
  810.  
  811.  
  812.           /S+ "MAINTAIN.BAT"
  813.           /S- "DOIT %S"
  814.  
  815.  
  816.      8.4.2.5  /P[+|-] (Specific Sub-Directory Commands)
  817.  
  818.      Format:
  819.  
  820.           /P[+|-] {directory} ["]{DOS Command}["]
  821.  
  822.      Allows you to specify a command that will be executed before
  823.      ("+") or after ("-") CleanUp processes the specified directory
  824.      ONLY.  NOTE: This command is executed INSTEAD of the
  825.      corresponding /S command for the specified directory.
  826.  
  827.      Examples:
  828.  
  829.           /P+ C:\BIN "SCAN %S"
  830.           /P- C:\WORK\TEST "SPECIAL.BAT"
  831.  
  832.  
  833.      8.4.2.6  /X (Exclude Sub-directory)
  834.  
  835.      Format:
  836.  
  837.           /X {directory}
  838.  
  839.      Specifies that the named directory is to be excluded from
  840.      processing.  NO processing will be done on this directory.
  841.  
  842.      Examples:
  843.  
  844.           /X C:\HOLD
  845.           /X D:\WORK\SPECIAL
  846.           /X E:\UPLOAD
  847.  
  848.  
  849.  
  850.  
  851.  
  852.  
  853.  
  854.  
  855.  
  856.  
  857.  
  858.  
  859.  
  860.  
  861.  
  862.  
  863.  
  864.  
  865.  
  866.  
  867.  
  868.      Copyright Bob Breedlove 1989,90               All rights reserved
  869.  
  870.  
  871.  
  872.  
  873.  
  874.      CleanUp Version 2.00      Jan 27, 1990                    Page 14
  875.  
  876.  
  877.  
  878.      8.5  Filename Patterns
  879.  
  880.      CleanUp uses an extended set of file name matching symbols
  881.      (Templates). These allow greater flexibility in the selection of
  882.      files to be processed than the standard DOS wildcard characters
  883.      ("?" and "*"). Only a single filename pattern can be placed on
  884.      each line.
  885.  
  886.  
  887.      8.5.1  File Pattern Line
  888.  
  889.  
  890.  
  891.      8.5.2  Template Summary
  892.  
  893.      The following is a summary of template characters that can be used in
  894.      filename patterns:
  895.  
  896.          ?   = Any character
  897.          #   = Any integer
  898.          @   = Any alphabetic character
  899.          *   = any string of zero or more characters
  900.          []  = Groups characters inclusive
  901.          [~] = Groups characters exclusive
  902.          {|} = Groups of phrases
  903.  
  904.      Each of these template characters is described in detail below.
  905.  
  906.  
  907.      8.5.3  Template Characters
  908.  
  909.      ?   [Any Character]
  910.  
  911.      Just as the DOS wildcard character, the question mark ("?")
  912.      matches any SINGLE character.  The exact number of characters
  913.      represented by the "?" must be present to match.
  914.  
  915.      Examples:
  916.  
  917.      ???.EXE                       Matches any file with EXACTLY 3
  918.                                    characters and an extension of EXE. For
  919.                                    example: ABC.EXE, 123.EXE, A2_.EXE. It
  920.                                    would not match AB.EXE or ABCD.EXE.
  921.  
  922.      TEST?.DOC                     Matches any file with a filename that
  923.                                    consists of "TEST" followed by any
  924.                                    SINGLE character and has an extension of
  925.                                    "DOC". It would match TEST1.DOC or
  926.                                    TESTM.DOC, but NOT TEST12.DOC or
  927.                                    TEST.DOC.
  928.  
  929.  
  930.  
  931.  
  932.  
  933.  
  934.  
  935.      Copyright Bob Breedlove 1989,90               All rights reserved
  936.  
  937.  
  938.  
  939.  
  940.  
  941.      CleanUp Version 2.00      Jan 27, 1990                    Page 15
  942.  
  943.  
  944.  
  945.      TEST.???                      Matches any file whose name is TEST with
  946.                                    a three character extension. Would match
  947.                                    TEST.EXE and TEST.DOC, but would NOT
  948.                                    match TEST.1 or TEST2.DOC.
  949.  
  950.  
  951.      #   [Any Integer]
  952.  
  953.      This template character is the same as the "?" except that it
  954.      only matches the numbers 0,1,2,3,4,5,6,7,8,9.
  955.  
  956.      EXAMPLES:
  957.  
  958.      A###.TXT                      Would match any file name starting with
  959.                                    "A" followed by three numbers and having
  960.                                    the extension "TXT".  It would match
  961.                                    "A123.TXT" and "A989.TXT", but not
  962.                                    "ABCD.TXT", "A1.TXT" or "A22A.TXT".
  963.  
  964.      #*.*                          Would match any file whose name started
  965.                                    with a number.
  966.  
  967.  
  968.      @   [Any Alphabetic Character]
  969.  
  970.      This template character is the same as the "?" except that it
  971.      matches only the alphabetic characters A-Z. Case is ignored.
  972.  
  973.      Examples:
  974.  
  975.      @???.@@@                      Would match any file whose name was
  976.                                    exactly 4 characters long and started
  977.                                    with any alphabetic character and whose
  978.                                    extension was composed of exactly three
  979.                                    alphabetic characters.  It would match
  980.                                    "A123.ABC" or "ZA2C.TXT", but not
  981.                                    "5ABC.TXT" or "A123.A2C".
  982.  
  983.      T@#*.*                        Would match any file whose name started
  984.                                    with a "T" followed by any alphabetic
  985.                                    character and any numeric character.
  986.  
  987.  
  988.      *   [Any string of zero or more Characters]
  989.  
  990.      The asterisk ("*") matches any string of zero or more characters.
  991.      NOTE: Unlike the DOS "*" this template character can be used
  992.      anywhere in the file name or extension.
  993.  
  994.      *.EXE                         Matches any file with the extension
  995.                                    "EXE".
  996.  
  997.  
  998.  
  999.  
  1000.  
  1001.  
  1002.      Copyright Bob Breedlove 1989,90               All rights reserved
  1003.  
  1004.  
  1005.  
  1006.  
  1007.  
  1008.      CleanUp Version 2.00      Jan 27, 1990                    Page 16
  1009.  
  1010.  
  1011.  
  1012.      TEST*.DOC                     Matches any file which starts with
  1013.                                    "TEST" and has zero or more characters
  1014.                                    in the remainder of the filename and has
  1015.                                    the extension "DOC". This template would
  1016.                                    match TEST.DOC, TEST1.DOC, TESTABC.DOC.
  1017.  
  1018.      *TEST.*                       This template would match any file with
  1019.                                    TEST as the last four characters of the
  1020.                                    filename and any extension. It would
  1021.                                    match TEST.DOC, ATEST.EXE, THISTEST.TXT.
  1022.                                    It would not match TEST1.DOC.
  1023.  
  1024.      T*0*.T*                       This pattern matches any file that
  1025.                                    starts with "T", has a "0" somewhere in
  1026.                                    the filename and has an extension that
  1027.                                    starts with "T". It matches T10.TXT,
  1028.                                    T011.T, TXXXXXX0.T00. It would not match
  1029.                                    T111.TXT, 1T0.T, T00.XXX.
  1030.  
  1031.      CAUTION:  As with DOS, the "*" can be VERY dangerous.  For example,
  1032.      "*.*" would delete ALL the files from your disk.
  1033.  
  1034.  
  1035.      []  [Groups characters, inclusive]
  1036.      [~] [Groups characters, exclusive]
  1037.  
  1038.      The "[]" pattern allows you to specify characters which are to be
  1039.      considered in an "or" function.  The [~] pattern indicates that
  1040.      the character must NOT be one of the characters.  The "-" is used
  1041.      to indicate a range of characters.  The "," indicates separate
  1042.      characters.  All characters within the "[]" have their literal
  1043.      meaning.
  1044.  
  1045.      Examples:
  1046.  
  1047.      [a-e]*.*                      Will match any filename starting with
  1048.                                    the characters "a","b","c","d", or "e". 
  1049.                                    It would match ATEST.DOC or DONE.TXT,
  1050.                                    but not FRED.DOC.
  1051.  
  1052.      [a,d,1,@]*.*                  Will match any filename starting with
  1053.                                    the characters "a","d","1" or "@". 
  1054.                                    Notice that the "@" does NOT have its
  1055.                                    meaning in a template.
  1056.  
  1057.      S[a-d,g,1-3]*.123             Will match any filename starting with
  1058.                                    the letter "S" and followed by one of
  1059.                                    the characters
  1060.                                    "a","b","c","d","g","1","2","3" and
  1061.                                    having the extension "123".
  1062.  
  1063.      [~a-z]*.*                     Will match any filename NOT starting
  1064.                                    with an alphabetic character.
  1065.  
  1066.  
  1067.  
  1068.  
  1069.      Copyright Bob Breedlove 1989,90               All rights reserved
  1070.  
  1071.  
  1072.  
  1073.  
  1074.  
  1075.      CleanUp Version 2.00      Jan 27, 1990                    Page 17
  1076.  
  1077.  
  1078.  
  1079.      [~a,1,@]*.*                   Will match any filename NOT starting
  1080.                                    with an "a","1", or "@".
  1081.  
  1082.  
  1083.      {|} [Groups phrases]
  1084.  
  1085.      Just as the "[]" pattern matches single characters, the "{|}"
  1086.      pattern matches sets of one or more phrases.  The vertical bar
  1087.      "|" is used to separate the phrases.  The phrases to not have to
  1088.      be the same length.
  1089.  
  1090.      Examples:
  1091.  
  1092.      {TO|THE|T2A}*.*               Will match filenames starting with "TO",
  1093.                                    "THE", or "T2A".
  1094.  
  1095.      *{XA|XB|TC}.*                 Will match filenames ending with "XA",
  1096.                                    "XB", or "TC".
  1097.  
  1098.      *.{TMP|TST}                   Will match filenames with the extensions
  1099.                                    "TMP" or "TST".
  1100.  
  1101.      *{T1|T2|A1|A2}*.*             Will match filenames with the phrases
  1102.                                    "T1", "T2", "A1" or "A2" somewhere in
  1103.                                    their filenames. NOTE, this could also
  1104.                                    be entered as "*[A,T][1,2]*.*".
  1105.  
  1106.  
  1107.      8.6  Pattern Options
  1108.  
  1109.      Pattern switches apply only to the pattern on the line in which
  1110.      they are entered.  The following switches are recognized:
  1111.  
  1112.  
  1113.      8.6.1  /V - Verify before processing
  1114.  
  1115.      The (V)erify switch causes CleanUp to pause and prompt you before
  1116.      processing a file which matches this pattern.  A message is
  1117.      displayed in the {message area} and the program pauses for input
  1118.      from the user.  If you answer "Y", the file will be processed. 
  1119.      If you answer "N", it will not be processed.
  1120.  
  1121.  
  1122.      8.6.2  /L - Log file switch
  1123.  
  1124.      The (L)og switch causes CleanUp to record the individual filename
  1125.      in the log file.  This gives you a permanent record of which
  1126.      files were processed.
  1127.  
  1128.  
  1129.  
  1130.  
  1131.  
  1132.  
  1133.  
  1134.  
  1135.  
  1136.      Copyright Bob Breedlove 1989,90               All rights reserved
  1137.  
  1138.  
  1139.  
  1140.  
  1141.  
  1142.      CleanUp Version 2.00      Jan 27, 1990                    Page 18
  1143.  
  1144.  
  1145.  
  1146.      8.6.3  /C - Count only switch
  1147.  
  1148.      The (C)ount switch causes CleanUp to tally the file, but NOT
  1149.      process it.  This can be useful if you wish only to know how many
  1150.      of a particular file are on your hard disk.  It is also useful
  1151.      for testing complex patterns to make sure that they process ONLY
  1152.      the files that you intend.
  1153.  
  1154.  
  1155.      8.6.4  "{DOS Command}"
  1156.  
  1157.      A DOS command can be executed instead of deleting the file.  This
  1158.      command must be the LAST thing on the pattern line and MUST be
  1159.      enclosed in quotes if the DOS command contains spaces.  For
  1160.      example:
  1161.  
  1162.           *.BAK "COPY %F C:\WORK\%N.OLD"
  1163.           *.TMP /V "MAINTAIN %N %E"
  1164.           *.OLD /V/L "MYBAT %F"
  1165.  
  1166.      are all valid command lines.  However,
  1167.  
  1168.           *.BAK "COPY %F C:\WORK\%N.OLD" /V
  1169.           *.TMP /V MAINTAIN %F
  1170.  
  1171.      are NOT valid.
  1172.  
  1173.  
  1174.  
  1175.  
  1176.  
  1177.  
  1178.  
  1179.  
  1180.  
  1181.  
  1182.  
  1183.  
  1184.  
  1185.  
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.  
  1193.  
  1194.  
  1195.  
  1196.  
  1197.  
  1198.  
  1199.  
  1200.  
  1201.  
  1202.  
  1203.      Copyright Bob Breedlove 1989,90               All rights reserved
  1204.  
  1205.  
  1206.  
  1207.  
  1208.  
  1209.      CleanUp Version 2.00      Jan 27, 1990                    Page 19
  1210.  
  1211.  
  1212.  
  1213.      9   The CleanUp Screen
  1214.  
  1215.      +---------------------------------------------------------------+
  1216.      | Directory: {directory}                                        |
  1217.      +-----------------------------+---------------------------------+
  1218.      |{processed files}            | Disks       Processed : {count} |
  1219.      |                             | Directories Processed : {count} |
  1220.      |                             | Files Read            : {count} |
  1221.      |                             | Files Matched         : {count} |
  1222.      |                             | Files Deleted         : {count} |
  1223.      |                             +---------------------------------+
  1224.      |                             |{control file name}              |
  1225.      |                             +---------------------------------+
  1226.      |                             |{control file patterns}          |
  1227.      |                             |{final statistics}               |
  1228.      |                             |                                 |
  1229.      |                             |                                 |
  1230.      |                             |                                 |
  1231.      |                             |                                 |
  1232.      |                             |                                 |
  1233.      |                             |                                 |
  1234.      |                             |                                 |
  1235.      +-----------------------------+                                 |
  1236.      |{messages and prompts}       |                                 |
  1237.      |                             |                                 |
  1238.      +-----------------------------+---------------------------------+
  1239.       Cleanup version {version} (c) Bob Breedlove 1989,1990
  1240.  
  1241.  
  1242.      While cleanup is processing, it displays the CleanUp control
  1243.      screen.  This screen displays information about the session.  It
  1244.      is also used to prompt for information from the user, if
  1245.      required.  The following briefly describes each area on the
  1246.      screen.
  1247.  
  1248.      {directory}                   Directory being processed.
  1249.  
  1250.      {processed files}             Lists files as they are
  1251.                                    deleted/processed.
  1252.  
  1253.      {count}                       Lists count of files in category while
  1254.                                    processing.
  1255.  
  1256.      {control file name}           The control file name including path.
  1257.  
  1258.      {control file patterns}
  1259.      {final statistics}            During processing, this section lists
  1260.                                    the control file patterns.  After
  1261.                                    processing is complete, it displays a
  1262.                                    set of final statistics for the session.
  1263.  
  1264.      {messages and prompts}        Displays general messages and prompts
  1265.                                    during processing.
  1266.  
  1267.  
  1268.  
  1269.  
  1270.      Copyright Bob Breedlove 1989,90               All rights reserved
  1271.  
  1272.  
  1273.  
  1274.  
  1275.  
  1276.      CleanUp Version 2.00      Jan 27, 1990                    Page 20
  1277.  
  1278.  
  1279.  
  1280.      For a description of the messages and prompts displayed during
  1281.      processing see the section on "Messages" at the end of this
  1282.      documentation.
  1283.  
  1284.  
  1285.  
  1286.  
  1287.  
  1288.  
  1289.  
  1290.  
  1291.  
  1292.  
  1293.  
  1294.  
  1295.  
  1296.  
  1297.  
  1298.  
  1299.  
  1300.  
  1301.  
  1302.  
  1303.  
  1304.  
  1305.  
  1306.  
  1307.  
  1308.  
  1309.  
  1310.  
  1311.  
  1312.  
  1313.  
  1314.  
  1315.  
  1316.  
  1317.  
  1318.  
  1319.  
  1320.  
  1321.  
  1322.  
  1323.  
  1324.  
  1325.  
  1326.  
  1327.  
  1328.  
  1329.  
  1330.  
  1331.  
  1332.  
  1333.  
  1334.  
  1335.  
  1336.  
  1337.      Copyright Bob Breedlove 1989,90               All rights reserved
  1338.  
  1339.  
  1340.  
  1341.  
  1342.  
  1343.      CleanUp Version 2.00      Jan 27, 1990                    Page 21
  1344.  
  1345.  
  1346.  
  1347.      10  The log file (CleanUp.LOG)
  1348.  
  1349.      CleanUp maintains a log file.  By default, this file is called
  1350.      CleanUp.LOG.  It is stored in the same sub-directory where
  1351.      CleanUp found the control file.  The file is a plain ASCII text
  1352.      file and can be listed, edited or printed.  The log file name
  1353.      will be the same as the name of the control file used with an
  1354.      extension of "LOG".  For example: if your control file is
  1355.      "DAILY.CTL" then the log file will be "DAILY.LOG".
  1356.  
  1357.      NOTE: CleanUp will write over any existing log files.  If you
  1358.      wish to keep track of previous CleanUp sessions, you will have to
  1359.      rename the log file to a different name or copy the log file to a
  1360.      different directory before running CleanUp.
  1361.  
  1362.  
  1363.      10.1  Sample Log File
  1364.  
  1365.      CleanUp version 2.00  started : 01/20/90 at 12:51:23
  1366.  
  1367.      Control File: 
  1368.  
  1369.      Disks : C
  1370.      *.BAK /L
  1371.      *.TMP /V
  1372.      *.[&,~]*
  1373.      *.??$
  1374.      *.O
  1375.  
  1376.      TEST.BAK     deleted
  1377.      DOCUMENT.BAK deleted
  1378.      RESTORE.BAK  deleted
  1379.  
  1380.  
  1381.                             Num     Bytes      Num    Bytes
  1382.      Pattern              Matched  Matched   Deleted Deleted
  1383.      *.BAK                    3      16835       3     16835
  1384.      *.TMP                    0          0       0         0
  1385.      *.[&,~]*                 0          0       0         0
  1386.      *.??$                    0          0       0         0
  1387.      *.O                      0          0       0         0
  1388.  
  1389.      Disks Processed :         1
  1390.      Dirs  Processed :        43
  1391.      Files Read      :       888
  1392.      Bytes Read      :  17911920
  1393.      Files Matched   :         3
  1394.      Bytes Matched   :     16835
  1395.      Files Deleted   :         3
  1396.      Bytes Deleted   :     16835
  1397.  
  1398.  
  1399.  
  1400.  
  1401.  
  1402.  
  1403.  
  1404.      Copyright Bob Breedlove 1989,90               All rights reserved
  1405.  
  1406.  
  1407.  
  1408.  
  1409.  
  1410.      CleanUp Version 2.00      Jan 27, 1990                    Page 22
  1411.  
  1412.  
  1413.  
  1414.      10.2  Log File Contents
  1415.  
  1416.      10.2.1  Log File Header
  1417.  
  1418.      The log file header contains the CleanUp version number.  This
  1419.      number is important when reporting problems with your registered
  1420.      version of CleanUp.
  1421.  
  1422.      The header also shows the date and time that CleanUp was run. 
  1423.      These are taken from the computer's clock and will only be as
  1424.      accurate as the clock.
  1425.  
  1426.  
  1427.      10.2.2  CleanUp Control File Patterns
  1428.  
  1429.      CleanUp then displays the control file name and its contents.
  1430.      This section in the log file contains the patterns and control
  1431.      switches found in the control file.
  1432.  
  1433.  
  1434.      10.2.3  File Processing Log
  1435.  
  1436.      If you have told CleanUp to log files that it finds and processes
  1437.      (/L switch), this section contains a list of these filenames.
  1438.  
  1439.  
  1440.      10.2.4  Pattern Counts
  1441.  
  1442.      CleanUp next displays the counts and total bytes matched and
  1443.      processed (deleted) for each of the file patterns.
  1444.  
  1445.  
  1446.      10.2.5  Total Counts
  1447.  
  1448.      The log ends with the total processing count display.  This is
  1449.      the same display which is shown in the lower right-hand window on
  1450.      the CleanUp screen.
  1451.  
  1452.  
  1453.  
  1454.  
  1455.  
  1456.  
  1457.  
  1458.  
  1459.  
  1460.  
  1461.  
  1462.  
  1463.  
  1464.  
  1465.  
  1466.  
  1467.  
  1468.  
  1469.  
  1470.  
  1471.      Copyright Bob Breedlove 1989,90               All rights reserved
  1472.  
  1473.  
  1474.  
  1475.  
  1476.  
  1477.      CleanUp Version 2.00      Jan 27, 1990                    Page 23
  1478.  
  1479.  
  1480.  
  1481.      11  The Full Screen Editor
  1482.  
  1483.      CleanUp has a full-screen editor which can be used to edit the
  1484.      control file.  It can handle files up to 64K in size.  The editor
  1485.      uses commands very similar to WordStar (tm).  The file EDITOR.CMD
  1486.      contains the commands.  To print this "cheat sheet", you can use
  1487.      the command:
  1488.  
  1489.           COPY EDITOR.CMD PRN
  1490.  
  1491.      Be sure that your printer is on before you issue this command.
  1492.  
  1493.  
  1494.      11.1  Editing the Control File
  1495.  
  1496.      To edit the control file, start CleanUp with the "/E" or "/R"
  1497.      switches.  See the discussion above for more information on these
  1498.      command line switches.
  1499.  
  1500.  
  1501.  
  1502.  
  1503.  
  1504.  
  1505.  
  1506.  
  1507.  
  1508.  
  1509.  
  1510.  
  1511.  
  1512.  
  1513.  
  1514.  
  1515.  
  1516.  
  1517.  
  1518.  
  1519.  
  1520.  
  1521.  
  1522.  
  1523.  
  1524.  
  1525.  
  1526.  
  1527.  
  1528.  
  1529.  
  1530.  
  1531.  
  1532.  
  1533.  
  1534.  
  1535.  
  1536.  
  1537.  
  1538.      Copyright Bob Breedlove 1989,90               All rights reserved
  1539.  
  1540.  
  1541.  
  1542.  
  1543.  
  1544.      CleanUp Version 2.00      Jan 27, 1990                    Page 24
  1545.  
  1546.  
  1547.  
  1548.      12  Tips and Cautions
  1549.  
  1550.      12.1  The DOS Path
  1551.  
  1552.      Because CleanUp searches first in the current directory and then
  1553.      along the DOS PATH for the control file, you can have multiple
  1554.      control files in different sub-directories for various
  1555.      situations. In fact, you can have different control files with
  1556.      the SAME NAME in different sub-directories.  If you do, however,
  1557.      it is important that you realize where you have started CleanUp
  1558.      and what your DOS path is! UNLESS YOU SPECIFY THE FULL PATH NAME,
  1559.      CleanUp WILL EXECUTE THE FIRST CONTROL FILE IT FINDS THAT MATCHES
  1560.      YOUR COMMAND LINE!
  1561.  
  1562.      For example, given the following sub-directory structure:
  1563.  
  1564.      C:\
  1565.      +----C:\BIN
  1566.      |     CleanUp.CTL
  1567.      +----C:\WORK
  1568.      |     CleanUp.CTL
  1569.      +----C:\TEST
  1570.      |     CleanUp.CTL
  1571.      +----C:\MYDIR
  1572.  
  1573.      and the following DOS path
  1574.  
  1575.           C:\BIN;C:\WORK
  1576.  
  1577.      starting CleanUp from the following directories will use the
  1578.      indicated CleanUp.CTL file:
  1579.  
  1580.      Start Directory               Control File
  1581.      C:\                           C:\BIN\CleanUp.CTL
  1582.      C:\BIN                        C:\BIN\CleanUp.CTL
  1583.      C:\TEST                       C:\TEST\CleanUp.CTL
  1584.      C:\WORK                       C:\WORK\CleanUp.CTL
  1585.      C:\MYDIR                      C:\BIN\CleanUp.CTL
  1586.  
  1587.      Note that even though "C:\WORK\CleanUp.CTL" is along the DOS Path, it
  1588.      will not be used unless specified explicitly or CleanUp is started
  1589.      from that sub-directory.  This is because the path is searched on the
  1590.      order entered and CleanUp will always find "CleanUp.CTL" in the
  1591.      "C:\BIN" directory first and use it.
  1592.  
  1593.  
  1594.      12.2  Filename Patterns
  1595.  
  1596.      CleanUp will process faster and use less memory if you combine
  1597.      patterns.  For example, if you wish to delete all files with
  1598.      extensions of "BAK" and "TMP", you could enter either:
  1599.  
  1600.           *.BAK
  1601.           *.TMP
  1602.  
  1603.  
  1604.  
  1605.      Copyright Bob Breedlove 1989,90               All rights reserved
  1606.  
  1607.  
  1608.  
  1609.  
  1610.  
  1611.      CleanUp Version 2.00      Jan 27, 1990                    Page 25
  1612.  
  1613.  
  1614.  
  1615.  
  1616.      or
  1617.  
  1618.           *.{BAK|TMP}
  1619.  
  1620.      in the control file.  Both will do the job, but the second will
  1621.      use somewhat less memory and will process somewhat faster.  The
  1622.      first command lines will count the file types separately while
  1623.      the second will give you a total count for both types of files.
  1624.  
  1625.      You might also want to process all files starting with the
  1626.      letters "A", "B", or "D".  You could enter:
  1627.  
  1628.           A*.*
  1629.           B*.*
  1630.           D*.*
  1631.  
  1632.      This would count each type of file separately. However, you could
  1633.      also enter:
  1634.  
  1635.           [a,b,d]*.*
  1636.  
  1637.      and get somewhat faster processing.
  1638.  
  1639.  
  1640.      12.3  Using the /C pattern switch
  1641.  
  1642.      When you first test a control file, you might want to use the /C
  1643.      switch to count the files matching the pattern without deleting
  1644.      them.  This will allow you to verify that only the files that you
  1645.      want to process are actually processed by CleanUp.  Once you've
  1646.      seen that the control file works correctly, remove the switch and
  1647.      process the disk.
  1648.  
  1649.  
  1650.  
  1651.  
  1652.  
  1653.  
  1654.  
  1655.  
  1656.  
  1657.  
  1658.  
  1659.  
  1660.  
  1661.  
  1662.  
  1663.  
  1664.  
  1665.  
  1666.  
  1667.  
  1668.  
  1669.  
  1670.  
  1671.  
  1672.      Copyright Bob Breedlove 1989,90               All rights reserved
  1673.  
  1674.  
  1675.  
  1676.  
  1677.  
  1678.      CleanUp Version 2.00      Jan 27, 1990                    Page 26
  1679.  
  1680.  
  1681.  
  1682.      13  Capacities
  1683.  
  1684.      CleanUp does not limit the number of patterns or sub-directories
  1685.      that you can process.  However, CleanUp does use memory to store
  1686.      "lists" used to process files.  If you have a large number of
  1687.      sub-directories or patterns, and a small amount of memory,
  1688.      CleanUp may not function.  To make more memory available:
  1689.  
  1690.      o   Remove any memory-resident programs
  1691.      o   Remove any menuing programs that are in memory
  1692.  
  1693.      It is highly unlikely that you will run out of memory if you have done
  1694.      these two things.
  1695.  
  1696.  
  1697.      14  Messages
  1698.  
  1699.      This section contains a description of the messages produced by
  1700.      CleanUp during processing.  They are arranged in alphabetical
  1701.      order.
  1702.  
  1703.  
  1704.      Abort Operation (y/N)?
  1705.  
  1706.           This message appears when you have pressed a key during
  1707.           CleanUp operation.  CleanUp pauses when possible and asks if
  1708.           you wish to interrupt processing.  Press "Y" to abort
  1709.           processing.  If you enter "N" or press <Enter>, processing
  1710.           will continue.
  1711.  
  1712.  
  1713.      ABORTED : {Message}
  1714.  
  1715.           CleanUp has aborted for some reason.  {message} describes
  1716.           the reason that CleanUp aborted.
  1717.  
  1718.  
  1719.      Batch Processing
  1720.  
  1721.           Appears in the Log File when you have specified batch
  1722.           processing ("/B").
  1723.  
  1724.  
  1725.      Cannot Get Current Directory!
  1726.  
  1727.           CleanUp is unable to obtain the name of the current
  1728.           directory.  This is a fatal condition.
  1729.  
  1730.  
  1731.  
  1732.  
  1733.  
  1734.  
  1735.  
  1736.  
  1737.  
  1738.  
  1739.      Copyright Bob Breedlove 1989,90               All rights reserved
  1740.  
  1741.  
  1742.  
  1743.  
  1744.  
  1745.      CleanUp Version 2.00      Jan 27, 1990                    Page 27
  1746.  
  1747.  
  1748.  
  1749.      Cleanup version {Version} (c) Bob Breedlove 1989,90
  1750.  
  1751.           This is the "banner" message for CleanUp.  It appears at the
  1752.           top of the CleanUp control screen.  The important thing on
  1753.           this message is the {version}.  Registered users will need
  1754.           this when calling for support.
  1755.  
  1756.  
  1757.      CleanUp version {Version} started : {date} at {time}
  1758.  
  1759.           Log File Message.  The {date} and {time} are taken from the
  1760.           system clock.  They will only be as accurate as this clock.
  1761.  
  1762.  
  1763.      Control File: unable to open {ControlFileName}
  1764.  
  1765.           Displayed if CleanUp is unable to locate the control file. 
  1766.           {ControlFileName} indicates the name CleanUp was attempting
  1767.           to find.  Check to make sure that you entered the correct
  1768.           name and that this control file is located somewhere on your
  1769.           DOS PATH.
  1770.  
  1771.  
  1772.      Control File: {ControlFileName}
  1773.  
  1774.           Records the name of the control file in the log file.
  1775.  
  1776.  
  1777.      Delete/Process File (Y/N)?
  1778.  
  1779.           Prompt displayed for each file matching a pattern with the
  1780.           "/V" pattern switch.  Press "Y" to delete or process the
  1781.           file, press "N" to skip the file.
  1782.  
  1783.  
  1784.      Dir Com {In|Out} : {Directory} - {Command}
  1785.  
  1786.           This message is recorded in the log file when you have
  1787.           specified a command for a specific directory using
  1788.           "/P[+|-]".
  1789.  
  1790.           {In|Out}                      indicates whether this command was
  1791.                                         executed before ("+") or after
  1792.                                         ("-") processing the directory.
  1793.           {directory}                   the full path name of the
  1794.                                         directory.
  1795.           {command}                     the command line as you entered it.
  1796.  
  1797.  
  1798.      Dir {In|Out} : {Command}
  1799.  
  1800.           Written to the Log File when you specify a command to be
  1801.           executed before ("+") or after ("-") processing each
  1802.           directory ("/S{+|-}").
  1803.  
  1804.  
  1805.  
  1806.      Copyright Bob Breedlove 1989,90               All rights reserved
  1807.  
  1808.  
  1809.  
  1810.  
  1811.  
  1812.      CleanUp Version 2.00      Jan 27, 1990                    Page 28
  1813.  
  1814.  
  1815.  
  1816.      Directory {In|Out} : {command}
  1817.  
  1818.           CleanUp displays the DOS command being executed when you
  1819.           start ("In") or complete ("Out") directory processing at the
  1820.           top of the execution window.  The DOS command shows the
  1821.           expanded substitution variables.
  1822.  
  1823.  
  1824.      Disk {In|Out} : {command}
  1825.  
  1826.           CleanUp displays the DOS command being executed when you
  1827.           start ("In") or complete ("Out") processing a disk at the
  1828.           top of the execution window.  The DOS command shows the
  1829.           expanded substitution variables.
  1830.  
  1831.  
  1832.      Disk {In|Out} : {Command}
  1833.  
  1834.           Written to the Log File when you specify a command to be
  1835.           executed before ("+") or after ("-") processing each disk
  1836.           ("/S{+|-}").
  1837.  
  1838.  
  1839.      Disks : {Disks}
  1840.  
  1841.           Logs the disks processed.  These are the disks listed on the
  1842.           "/D" session switch.
  1843.  
  1844.  
  1845.      Editing Complete
  1846.  
  1847.           Indicates a successful editing session initiated with the
  1848.           "/E" command line switch.
  1849.  
  1850.  
  1851.      Error executing DOS: {result}
  1852.  
  1853.           CleanUp has received an error while trying to execute an
  1854.           external DOS command ("{result}").
  1855.  
  1856.           {result} can be:
  1857.            
  1858.             2  File not found
  1859.             8  Not enough memory (the most common)
  1860.            10  Invalid environment
  1861.            11  Invalid format
  1862.  
  1863.  
  1864.  
  1865.      Exclude: {directory}
  1866.  
  1867.           Entered in the log file when you have specified a
  1868.           {directory} to exclude for processing ("/X").
  1869.  
  1870.  
  1871.  
  1872.  
  1873.      Copyright Bob Breedlove 1989,90               All rights reserved
  1874.  
  1875.  
  1876.  
  1877.  
  1878.  
  1879.      CleanUp Version 2.00      Jan 27, 1990                    Page 29
  1880.  
  1881.  
  1882.  
  1883.      Excluded: {Directory}
  1884.  
  1885.           CleanUp logs the name of any directory which you have
  1886.           excluded from processing.
  1887.  
  1888.  
  1889.      Filename deleted
  1890.  
  1891.           CleanUp has successfully deleted the indicated file.
  1892.  
  1893.  
  1894.      Filename not deleted/processed
  1895.  
  1896.           This message is displayed on the screen and recorded in the
  1897.           log file.  You specified the verify parameter ("/V") and
  1898.           answered "N" (no) to the prompt.
  1899.  
  1900.  
  1901.      Filename unable to delete
  1902.  
  1903.           CleanUp was not able to delete a file which matched one of
  1904.           the patterns.  This can be caused by read-only file
  1905.           attributes or share locking in a network environment.
  1906.  
  1907.  
  1908.      Finding Directories
  1909.      Please wait . . .
  1910.  
  1911.           Displayed while CleanUp is reading all directories on the
  1912.           disk.  CleanUp first scans each disk for all directories
  1913.           then processes them from an internal list.
  1914.  
  1915.  
  1916.      Loading Control File.
  1917.      Please wait . . .
  1918.  
  1919.           Displayed in the message area while CleanUp is loading the
  1920.           control file.
  1921.  
  1922.  
  1923.      PROCESSING COMPLETE
  1924.      Press ANY key . . .
  1925.  
  1926.           Displayed in the {message area} when CleanUp has completed
  1927.           processing unless the "/B" system switch has been entered. 
  1928.           CleanUp pauses until you press any key.
  1929.  
  1930.  
  1931.      Processing {Filename} : {command}
  1932.  
  1933.           CleanUp displays the DOS command being executed at the top
  1934.           of the execution window when you have specified a command to
  1935.           be run rather than deleting a file.  The DOS command shows
  1936.           the expanded substitution variables.
  1937.  
  1938.  
  1939.  
  1940.      Copyright Bob Breedlove 1989,90               All rights reserved
  1941.  
  1942.  
  1943.  
  1944.  
  1945.  
  1946.      CleanUp Version 2.00      Jan 27, 1990                    Page 30
  1947.  
  1948.  
  1949.  
  1950.      Processing,
  1951.      Please wait . . .
  1952.  
  1953.           Message displayed in the {messages and prompts} area of the
  1954.           CleanUp screen during processing.
  1955.  
  1956.  
  1957.      Program aborted by operator!
  1958.  
  1959.           Message is displayed if you abort program operation by
  1960.           pressing any key and then answering "Y" to the "Abort
  1961.           Operation" prompt.
  1962.  
  1963.  
  1964.      Unable to access : {Root Directory}
  1965.  
  1966.           CleanUp is unable to access the specified root directory. 
  1967.           Because CleanUp cannot process the root directory, it is
  1968.           unable to process the entire disk.
  1969.  
  1970.  
  1971.      Unable to change to {Directory}
  1972.  
  1973.           While processing, CleanUp was unable to change to the
  1974.           indicated directory ("cd {directory}").  This is considered
  1975.           a fatal error since CleanUp WAS able to change to the
  1976.           directory to place it on the working list.  This error may
  1977.           be caused by directory "locking" in a multi-tasking or
  1978.           network environment.  CleanUp must have access to all
  1979.           directories you have asked it to process.
  1980.  
  1981.  
  1982.      Unable to create command window
  1983.  
  1984.           CleanUp attempted to create a window in which to run an
  1985.           external command but was unable to do so.  This is usually
  1986.           caused by too little memory.  Try removing one or more TSR
  1987.           program from memory and start CleanUp again.
  1988.  
  1989.  
  1990.      Unable to create edit window
  1991.  
  1992.           While trying to edit the control file, CleanUp was unable to
  1993.           create the edit window.  This is usually an indication of
  1994.           too little available memory.
  1995.  
  1996.  
  1997.      Unable to display edit window
  1998.  
  1999.           While trying to edit the control file, CleanUp was unable to
  2000.           display the edit window.  This is usually an indication of
  2001.           too little available memory.
  2002.  
  2003.  
  2004.  
  2005.  
  2006.  
  2007.      Copyright Bob Breedlove 1989,90               All rights reserved
  2008.  
  2009.  
  2010.  
  2011.  
  2012.  
  2013.      CleanUp Version 2.00      Jan 27, 1990                    Page 31
  2014.  
  2015.  
  2016.  
  2017.      Unable to execute external command for {Heading}
  2018.  
  2019.           CleanUp was unable to create the window and execute a
  2020.           command for the {heading} process.  Heading will contain the
  2021.           name of the process ("Disk In", "Directory In", etc.) and
  2022.           the command that it was trying to execute.  This abort
  2023.           message is usually indicative of too little memory.
  2024.  
  2025.  
  2026.      Unable to initialize editor
  2027.  
  2028.           CleanUp was unable to initialize the edit buffers to edit
  2029.           the control file.  This is usually an indication that you do
  2030.           not have enough free memory.
  2031.  
  2032.  
  2033.      Unable to open LogFile
  2034.  
  2035.           CleanUp was unable to open the log file.  CleanUp attempts
  2036.           to place the log file in the same sub-directory as the
  2037.           control file.  Be sure that this is NOT a protected
  2038.           directory.
  2039.  
  2040.  
  2041.      Unable to save {ControlFileName}
  2042.  
  2043.           CleanUp was unable to save the control file after you edited
  2044.           it.  This is usually a result of removing a diskette on
  2045.           which the file was located or some action taken over a
  2046.           network.
  2047.  
  2048.  
  2049.      {ControlFileName} too large to edit!
  2050.  
  2051.           The control file is larger than 64K.  This is highly
  2052.           unlikely with CleanUp's control file.  You are probably
  2053.           pointing to a file which is NOT a CleanUp control file.
  2054.  
  2055.  
  2056.      {Filename} processed
  2057.  
  2058.           CleanUp displays this message when it has completed
  2059.           processing a file for which you have specified a DOS
  2060.           command.  If required, it will also log the message to the
  2061.           log file.
  2062.  
  2063.  
  2064.  
  2065.  
  2066.  
  2067.  
  2068.  
  2069.  
  2070.  
  2071.  
  2072.  
  2073.  
  2074.      Copyright Bob Breedlove 1989,90               All rights reserved
  2075.  
  2076.  
  2077.  
  2078.  
  2079.  
  2080.      CleanUp Version 2.00      Jan 27, 1990                    Page 32
  2081.  
  2082.  
  2083.  
  2084.      15  Registration Form
  2085.  
  2086.      To register CleanUp, send $5.00 and this completed registration
  2087.      form to:
  2088.  
  2089.           Bob Breedlove
  2090.           3196 Swallowsnest Dr.
  2091.           Sacramento, CA 95833
  2092.  
  2093.      You will receive confirmation of your registration and support
  2094.      instructions by return mail.  When the new version of CleanUp is
  2095.      released, you will receive if FREE OF CHARGE!  Thanks for
  2096.      registering CleanUp.
  2097.  
  2098.      Name:     __________________________________________________
  2099.  
  2100.      Address:  __________________________________________________
  2101.  
  2102.                __________________________________________________
  2103.  
  2104.      City:     ___________________________ State: ___ Zip: ______
  2105.  
  2106.      Phone:    (______) _____-_______ extension _________________
  2107.  
  2108.      The following information is optional, however, it will help me
  2109.      provide you with assistance should you need support to use
  2110.      CleanUp.
  2111.  
  2112.      Computer: __________________________________________________
  2113.  
  2114.      Type:     808X____  80286____  80386____  Other_____________
  2115.  
  2116.      Memory:   ___________________
  2117.  
  2118.      Graphics: CGA__ VGA__ EGA__ B/W__ Hercules__
  2119.  
  2120.  
  2121.  
  2122.  
  2123.  
  2124.  
  2125.  
  2126.  
  2127.  
  2128.  
  2129.  
  2130.  
  2131.  
  2132.  
  2133.  
  2134.  
  2135.  
  2136.  
  2137.  
  2138.  
  2139.  
  2140.  
  2141.      Copyright Bob Breedlove 1989,90               All rights reserved
  2142.  
  2143.  
  2144.  
  2145.