home *** CD-ROM | disk | FTP | other *** search
/ Phoenix CD 2.0 / Phoenix_CD.cdr / 11a / cweep230.zip / CWEEP.TXT < prev   
Text File  |  1988-01-09  |  37KB  |  731 lines

  1.                     CWEEP  --  A SWEEP-like program for MS-DOS        Page 1
  2.  
  3.  
  4.                                    By Gary M. Berg
  5.  
  6.                                  3707 Silver Oak St
  7.                                 Dayton, Ohio   45424
  8.  
  9.                                          or
  10.                                  c/o Chemineer Inc.
  11.                                     P.O. Box 1123
  12.                                   Dayton, OH  45401
  13.                                    (513) 454-3213
  14.  
  15.  
  16.  
  17.                                    Date: 09-Dec-87
  18.  
  19.                 Copyright (C) 1984-87 by Gary M. Berg/Chemineer Inc.
  20.  
  21.  
  22.                                      Disclaimer
  23.  
  24.            This software has been released to the public domain by the
  25.         author.  All commercial rights are retained by the author.  It may be
  26.         freely passed on to others as long as no charge is made except for
  27.         possibly a small copying charge.  Although this software is thought to
  28.         work as described, no warranty of fitness is made for this software.
  29.  
  30.  
  31.  
  32.            CWEEP is a program which provides the same capabilities for the
  33.         MS-DOS user as the program SWEEP does for the CP/M user.  It provides
  34.         the ability to take a sorted list of the files on a disk and move
  35.         forward and backward in the list.  Files can be viewed, copied,
  36.         deleted individually and in groups.
  37.  
  38.            CWEEP is invoked at the MS-DOS command line by:
  39.  
  40.                           CWEEP {d:}{path}{afn} {-sw} {-sw}
  41.  
  42.           {d:}      an optional drive letter, the default being the currently
  43.                     logged drive
  44.  
  45.           {path}    an optional path.  Valid only for the 2.x version.
  46.  
  47.           {afn}     an optional ambiguous filename of what files to look at,
  48.                     the default begin "*.*" (in the currently logged
  49.                     directory under DOS 2.x).
  50.  
  51.           {-sw}     an optional switch or switches.  Switches begin with a
  52.                     '-' character.
  53.  
  54.                     CWEEP  --  A SWEEP-like program for MS-DOS        Page 2
  55.  
  56.            CWEEP will then look up all files matching the specified files,
  57.         and prompt with the first file name.  At this point, commands can be
  58.         entered to move around in the list, tag files, copy files, etc.  The
  59.         display on the next page was generated by starting CWEEP with no
  60.         filename specified:
  61.  
  62.  
  63.              CWEEP
  64.  
  65.                           CWEEP version 2.30h as of 09-Dec-87
  66.                  Copyright (C) 1984-87 by: Gary M. Berg/Chemineer Inc.
  67.  
  68.            sp/cr Advance to next file          <O>  Output list (-+ only)
  69.             [A]  Again tag '#' files (-+)      [P]  Protected mass copy
  70.             [B]  Back up one file              <Q>  Query files (-+ only)
  71.             [C]  Copy file to drive (-)        [R]  Rename a file
  72.             [D]  Delete a file                 [S]  Sort directory
  73.             [E]  Erase (un)tagged files        [T]  Tag a file
  74.             [F]  Free space on a drive         [U]  Untag a file
  75.             [H]  Hexadecimal display (-+~)     [V]  View a file (-+~)
  76.             [I]  Inquire file size/time (-+)   [W]  Wildcard file tag (-+)
  77.             [J]  Jump to a named entry         [X]  Exit program
  78.             [L]  Log new drive/filename (-+)   [Y]  Modify attributes (-+)
  79.             [M]  Mass copy tagged files        [Z]  Change subdirectory(-)
  80.             [N]  Calculate CRC (-+)            [!]  Goto DOS
  81.           [?],[/]Print this message            [=]  Goto settings menu
  82.  
  83.           [-?], [+?] other help messages, [@] for printer, [~] for search
  84.  
  85.            55 files, using 1284128 bytes (1283K) -- 1837056 bytes free (1794K)
  86.                 Volume label: <Data>         Path = 'D:\CWEEP\'
  87.  
  88.           1. D:CWEEP   .TXT 03-Nov-1987    32K =[ ]
  89.  
  90.  
  91.            The files matching what was specified (in this case *.*) are
  92.         sorted in alphabetic order, and the first file in the list is listed
  93.         on the screen with the date and the size rounded up to the nearest 1K. 
  94.         In addition, the amount of space free and the amount of space used in
  95.         the selected files is displayed.
  96.  
  97.            Note that in the display the period "." following the file
  98.         sequence number on the left will display as: "r" if the file is read-
  99.         only, "h" if it is hidden, and "s" if the files is a system file.  The
  100.         colon ":" following the file size will display as an equals sign "="
  101.         if the file does NOT have the archive bit set.  Thus, we can have
  102.         displays such as:
  103.  
  104.           1. D:CWEEP   .HST 18-Jul-1987     4K :[ ]  Read/write, archive on
  105.           1r D:CWEEP   .HST 18-Jul-1987     4K :[ ]  Read-only,  archive on
  106.           1. D:CWEEP   .HST 18-Jul-1987     4K =[ ]  Read/write, archive off
  107.           1r D:CWEEP   .HST 18-Jul-1987     4K =[ ]  Read-only,  archive off
  108.  
  109.                     CWEEP  --  A SWEEP-like program for MS-DOS        Page 3
  110.  
  111.            The characters following a command description on the menu are the
  112.         allowed prefix characters for that command.  For example, the [V]iew
  113.         command may be prefixed with a '+', '-', or a '~' character, in
  114.         addition to be used without any prefix character at all.  Those
  115.         commands with a command letter surrounded with '<' and '>', (such as
  116.         <O>utput), can be used by the prefix characters, but cannot be used by
  117.         themselves.
  118.  
  119.                        --------------------------------------
  120.  
  121.            The following is a list of commands with a short explanation:
  122.  
  123.           [@]       This character may be prefixed to a command to cause the
  124.                     output of the command to also go to the printer.  This
  125.                     works with the [?] help, [H]ex, [N] CRC, [Q]uery, and
  126.                     [V]iew commands.  If the command is a "paged" display,
  127.                     form-feeds will automatically be added to the printer
  128.                     output every 60 lines, and a page heading will be printed
  129.                     for the view and hex dump commands.
  130.  
  131.           [~]       This character may be prefixed to the view and hex dump
  132.                     command to cause a search for the "search target" to be
  133.                     done.  The search target is entered with "+V" or "+H", as
  134.                     explained below.  The ~ may be combined with other prefix
  135.                     characters to get paged view/hex dump output.
  136.  
  137.           <sp>
  138.           <cr>      Advance to the next file on the list.  Go to the first
  139.                     file on the list if you are at the last file on the list.
  140.  
  141.           [A]       Re-tag all files which are marked with a "#" in the list.
  142.  
  143.           [-A]      Reverse the status of tagged/untagged files.  All files
  144.                     which have tags of ' ' are tagged with an '*', and all
  145.                     files with a tag of '*' are tagged with a ' '.  All files
  146.                     which are tagged with a '#' (from previous mass copying)
  147.                     are left unchanged.
  148.  
  149.           [+A]      Set all tags on files to blank (untagged).
  150.  
  151.           <bs>
  152.           [B]       Back up to the previous file in the list.  Go to the last
  153.                     file in the list if B is entered when you are waiting at
  154.                     the first file on the list.
  155.  
  156.                     CWEEP  --  A SWEEP-like program for MS-DOS        Page 4
  157.  
  158.           [C]       Copy this file to another drive.  Prompt for the drive to
  159.                     copy to.  Destination drive can be entered in the form
  160.                     "d[:[v]]".  The if the "v" is specified, then the copy
  161.                     will be verified.  If the file already exists, the user
  162.                     will be queried about whether to delete it or not.  In
  163.                     version 2.x, the destination may be given as a
  164.                     subdirectory.  The default drive will be the current one.
  165.  
  166.                     "A"               - Copy to drive A
  167.                     "A:"              - Copy to drive A
  168.                     "B:V"             - Copy to drive B, and verify copy
  169.                     "B:\GARY:V"       - Copy to subdirectory "\GARY" on drive
  170.                                         B.  Verify the copy.
  171.                     "OTHER\SOME:V"    - Copy to subdirectory "OTHER\SOME" on
  172.                                         the logged drive.  Note that this is
  173.                                         a relative subdirectory, relative to
  174.                                         the current subdirectory on the
  175.                                         logged drive.
  176.  
  177.           [-C]      Copy file to another file name.  Need to specify what the
  178.                     new drive and file name are.  Append a ":V" to the end of
  179.                     the new name if you want the copy verified.  Specify the
  180.                     destination subdirectory if required.  Wild cards may be
  181.                     used in the output file name if desired, and the
  182.                     characters will be filled in as you would expect.
  183.  
  184.           [D]       Delete file or subdirectory.  You are asked to verify
  185.                     deletion.
  186.  
  187.           [E]       Erase all tagged or untagged files.  User is prompted for
  188.                     which type of files to erase, and whether the user should
  189.                     be prompted about each file or not.  At most options an
  190.                     "A" will abort the operation.
  191.  
  192.                     If the user requests that to be queried on each file the
  193.                     file name and date is listed and a response requested. 
  194.                     Valid responses are:
  195.  
  196.                     Y    Yes, erase the file.
  197.                     N    No, don't erase this file.  Go on to the next one. 
  198.                          Leaves the file tagged.
  199.                     V    View this file.  Displays the same way a View
  200.                          command would, although paging is always used.
  201.                     !    Go to DOS, to let the user do whatever they want.
  202.                     A    Abort the erase operation and return to the main
  203.                          menu.
  204.  
  205.           [F]       Check free space on any drive.
  206.  
  207.           [H]       Dump the file in hex format one page at a time (affected
  208.                     by paging flag).  The escape and return keys abort the
  209.                     dump, any other key pauses it.
  210.  
  211.                     CWEEP  --  A SWEEP-like program for MS-DOS        Page 5
  212.  
  213.           [+H]      This allows the user to set the search object for a later
  214.                     [V]iew or [H]ex command.  When '+H' is entered, the user
  215.                     will be prompted to enter a search object, which will be
  216.                     used to search the file for a starting point before
  217.                     printing or viewing if the '~' is used to prefix a view or
  218.                     hex dump command.  This command will NOT cause a search; a
  219.                     normal view or hex dump command (prefixed with a ~) must
  220.                     be used later.
  221.  
  222.                     The format of the search object is the same as that used
  223.                     by the DEBUG utility to enter a string:  strings are
  224.                     surrounded by single quotes ('), and numbers are entered
  225.                     as hex digits.  For example:
  226.  
  227.                               FF FE 'Hello'' there' 00
  228.  
  229.                     would look for the sequence of FF(255) FE(254), followed
  230.                     by a string consisting of "Hello' there" followed by a
  231.                     character having the value of 00(0).
  232.  
  233.                               FF FE Hello' there 00
  234.  
  235.                     The "+V" command is interchangeable with the "+H"
  236.                     command.  The search string is remembered until it is
  237.                     changed, so multiple searches may be made for the same
  238.                     search string.
  239.  
  240.           [-H]      Dump the file in hex without pausing.  Affected by the
  241.                     paging flag.
  242.  
  243.           [I]       Display the file size in bytes and the creation time. 
  244.                     Also displays the file attributes.
  245.  
  246.           [-I]      Display the file information on all tagged files.
  247.  
  248.           [+I]      Display the file information on all untagged files.
  249.  
  250.           [J]       Jump to the file in the list.  Specify name and
  251.                     extension, it will jump to the closest point in the list.
  252.  
  253.           [L]       Log in a new drive (directory on V2.x) and ambiguous
  254.                     filename.  Will replace the list currently being used by
  255.                     one matching what was entered.  If no period (".") is in
  256.                     the string, a "*.*" will be appended to the string for
  257.                     the ambiguous filename.
  258.  
  259.           [-L]      Log in the subdirectory currently displayed.
  260.  
  261.           [+L]      Log into the directory one higher than where we are.
  262.  
  263.           [M]       Copy all files which have been tagged to a specified
  264.                     drive.  The syntax is the same as for the Copy option. 
  265.                     This option WILL delete (without warning) any files
  266.                     existing on the destination if they match a file which is
  267.                     being copied.
  268.  
  269.                     CWEEP  --  A SWEEP-like program for MS-DOS        Page 6
  270.  
  271.           [N]       Calculate a CRC for this file.  This is the same CRC as
  272.                     the CP/M program CRCK returns.
  273.  
  274.           [-N]      Calculate CRC's for all tagged files.
  275.  
  276.           [+N]      Calculate CRC's for all untagged files.
  277.  
  278.           [-O]      Output a list of all tagged files to a disk file.
  279.  
  280.           [+O]      Output a list of all untagged files to a disk file.
  281.  
  282.           [P]       Protected mass copy option.  Same as "M" option except
  283.                     that the user will be queried before existing files are
  284.                     deleted.  If the output file exists, there will be a menu
  285.                     similar to that presented under the queried erase
  286.                     command.  The same options apply, including viewing the
  287.                     file and going to DOS.  You can view both the input and
  288.                     output files to determine what steps to take.
  289.  
  290.           [-Q]      Display a list of tagged files.
  291.  
  292.           [+Q]      Display a list of untagged files.
  293.  
  294.           [R]       Rename the file to something else.  A wildcard new name
  295.                     is allowed.  If just "*" is entered, a wild card may be
  296.                     entered for the old and new names.
  297.  
  298.           [S]       Sort the directory in order by name, extension, date, or
  299.                     size.  Preceed the sort field by "-" to invert the normal
  300.                     order.  Can be sorted by:
  301.  
  302.                     n    Name and extension
  303.                     e    Extension and name
  304.                     d    Date
  305.                     s    Size
  306.                     t    Tag marker
  307.                     #    Re-sort by the last specified order
  308.  
  309.           [T]       Tag a file.  It will appear in the listing marked with a
  310.                     "*", and will be used in any operations which work on
  311.                     tagged files.
  312.  
  313.           [U]       Untag a file.  Clears the "*" marker.
  314.  
  315.           [V]       Display the file a page at a time.  It ignores line
  316.                     feeds, and converts returns and vertical tabs to
  317.                     return/linefeed.  This allows listing files created by
  318.                     programs which only put returns in the file, such as
  319.                     Spellbinder.  The listing can be controlled by using
  320.                     return or escape to terminate, and any other key to
  321.                     pause.
  322.  
  323.                     If the file is a .WKS, .WRK, or .WK1 file (Lotus
  324.                     spreadsheets), CWEEP will display the contents of the
  325.                     worksheet in a readable form.  This displays information
  326.                     about the spreadsheet, including ranges, graphs, and the
  327.                     contents of each cell.
  328.                     CWEEP  --  A SWEEP-like program for MS-DOS        Page 7
  329.  
  330.  
  331.                     The paging flag controls whether this command pages the
  332.                     display or if -V does.
  333.  
  334.                     See the documentation on the mini-menu for setting the
  335.                     file viewing program
  336.  
  337.           [+V]      Set search object.  Same as "+H" command.
  338.  
  339.           [-V]      Display file without paging.  Affected by paging flag.
  340.  
  341.           [W]       Tag all files matching a wildcard.
  342.           [+W]      Untag all files matching a wildcard.
  343.           [-W]      Tag all files not matching a wildcard.
  344.  
  345.                     In the "W" and "+W" commands, the wildcard may be entered
  346.                     as "wildcard;attributes".  The match test will require
  347.                     that the wildcard match and that the file have (at least)
  348.                     the attributes specified in the attribute string.  The
  349.                     attribute string is in the same format as in the "Y"
  350.                     command below.
  351.  
  352.                     Note that matching all attributes specified means that a
  353.                     match will occur if the specified set attributes are on
  354.                     and the specified clear attributes are off.  The state of
  355.                     attributes not specified as set or cleared doesn't matter.
  356.  
  357.                     If a question mark is included in the archive string, then
  358.                     the user will be queried on whether to tag or untag each
  359.                     file.  You may also view the file, drop to DOS, tag/untag
  360.                     the rest of the files, or abort the wildcard operation.
  361.  
  362.           [Y]       Modify the attributes associated with a file.  The user
  363.                     will be prompted for attributes to add (+) and subtract
  364.                     (-) for the file.  The user can input a string consisting
  365.                     of "+", "-", "a", "r", "h", "s" in any combination.  The
  366.                     characters mean:
  367.  
  368.                          +    Set the following attributes.  There is an
  369.                               implied "+" at the start of the input, so the
  370.                               default is to set the file attributes entered.
  371.  
  372.                          -    Clear the following attributes.  Will remain in
  373.                               effect to the end of the input string or until a
  374.                               "+" is found.
  375.  
  376.                          a    Set/clear the archive bit.
  377.  
  378.                          r    Set/clear the read-only bit.
  379.  
  380.                          h    Set/clear the hidden bit.
  381.  
  382.                          s    Set/clear the system bit.
  383.  
  384.                     Note that the attributes on a file are NOT copied to a new
  385.                     file by any of the copy commands; the only way to do that
  386.                     is to use the "Y" command to set the attributes.
  387.                     CWEEP  --  A SWEEP-like program for MS-DOS        Page 8
  388.  
  389.  
  390.           [-Y]      Set/clear attributes for all tagged files.
  391.  
  392.           [+Y]      Set/clear attributes for all untagged files.
  393.  
  394.           [Z]       Enter a CHDIR command.  Note that this will only change
  395.                     the DOS default directory.  It will NOT change the
  396.                     directory which CWEEP has logged.  However, now that you
  397.                     have changed the default directory, you can refer to it
  398.                     just a D: instead of having to put out the entire path
  399.                     (unless you are copying to the same drive as the source
  400.                     files are on).
  401.  
  402.           [-Z]      Create a subdirectory (MKDIR).
  403.  
  404.           [?]
  405.           [/]       Print help text for all commands with no "+" or "-"
  406.                     prefix.
  407.  
  408.           [-?]
  409.           [-/]      Print help text for all commands with a "-" prefix.
  410.  
  411.           [+?]
  412.           [+/]      Print help text for all commands with a "+" prefix.
  413.  
  414.  
  415.  
  416.         If the display output is paged, then if a "+" or "-" is typed at the
  417.         "[more]" prompt, the display will be scrolled up a single line and
  418.         the prompt re-displayed.  Using the "+"/"-" with the hex dump is not
  419.         recommended, since pages are defined in terms of a number of lines,
  420.         and using the "+"/"-" will shift a page of the hex dump to break in
  421.         the middle of an address range.
  422.  
  423.                     CWEEP  --  A SWEEP-like program for MS-DOS        Page 9
  424.  
  425.  
  426.           [=]       This will take you to a settings menu controlling several
  427.                     program flags.  These are:
  428.  
  429.                     [8]  Select whether 8-bit characters are displayed
  430.                          unchanged, or if the 8th bit is stripped off.  If
  431.                          8-bit characters are displayed, only special
  432.                          characters like <cr>, <lf>, <tab>, etc are handled
  433.                          specially, and all others are displayed as text
  434.                          characters.  If 8-bit characters are not being
  435.                          displayed, then the 8th bit is removed, and
  436.                          everything outside of the range of 32-127 is
  437.                          considered to be non-printable.
  438.  
  439.                     [A]  Select whether time for the Info command is displayed
  440.                          as AM/PM or 24-hour.  The choice is toggled between
  441.                          the two options each time this option is selected.
  442.  
  443.                     [B]
  444.                     [I]  Select how I/O is done.  You will be prompted if you
  445.                          want to use Standard DOS, IBM compatible bios, or
  446.                          Z-100 bios to do the output.  Using the bios
  447.                          routines will improve the display speed about 33%
  448.                          (IBM) or nearly 50%(Z-100).
  449.  
  450.                          Note to Z-100 users: if PERKS is brought up while
  451.                          running CWEEP, using the bios I/O gives a jerky
  452.                          scroll until CWEEP is exited again.  It's no slower,
  453.                          just strange.  I have no explanation.
  454.  
  455.                     [C]  Control clearing the screen while viewing a file. 
  456.                          If on,  the screen will be cleared each time
  457.                          "[more]" is displayed at the bottom of the screen if
  458.                          a bios I/O method is being used.
  459.  
  460.                     [H]
  461.                     [S]  Control whether or not logging in files on a drive
  462.                          will list files with the hidden and/or system
  463.                          attribute.  The normal default is to not display
  464.                          those files.  If this ability is turned on, the drive
  465.                          must be re-logged to list any hidden/system files.
  466.  
  467.                     [M]  Turn the menu printing on/off.  Turning it off will
  468.                          suppress printing the menu when logging a new file
  469.                          specification.  Same as the command line option "-?"
  470.                          or "-/".
  471.  
  472.                     [P]  Turn the paged display on/off.  Controls whether the
  473.                          output from the view and hex dump commands will be
  474.                          paged or not by default.  If this is active, then
  475.                          "-V" will NOT page the display, and vice-versa.
  476.  
  477.                     CWEEP  --  A SWEEP-like program for MS-DOS       Page 10
  478.  
  479.                     [V]  Turn special viewing on/off.  When active, the
  480.                          program named in the environment variable CWEEP:V
  481.                          will be used to display the file, instead of CWEEP's
  482.                          own view routine.  This allows using a program such
  483.                          as Vernon Buerg's LIST.COM to page through files. 
  484.                          You can set the environment variable by including a
  485.                          command such as:
  486.  
  487.                               SET CWEEP:V=C:\BIN\LIST.COM
  488.  
  489.                          in your autoexec.bat file, or from the keyboard. 
  490.                          Note that the entire path and full program name MUST
  491.                          be included.  This could also be any program that
  492.                          expects the file name on the command line, such as a
  493.                          text editor.
  494.  
  495.                     [W]  Turn on/off extended display of Lotus and Symphony
  496.                          spreadsheets.  If on, files with the appropriate
  497.                          extension will be displayed as worksheets.
  498.  
  499.                     [Z]  Turn ctrl/Z processing on/off.  When on, viewing a
  500.                          file will stop on ctrl/Z.  When off, ctrl/Z is not
  501.                          considered an end of file.
  502.  
  503.                     [=]
  504.                     [Q]
  505.                     [X]  Exit the settings menu and return to normal
  506.                          operations.
  507.  
  508.                     [?]
  509.                     [/]  Print a help message.
  510.  
  511.                     CWEEP  --  A SWEEP-like program for MS-DOS       Page 11
  512.  
  513.  
  514.                                 COMMAND LINE SWITCHES
  515.  
  516.         The following is a list of valid command line switches for CWEEP. 
  517.         They may follow or preceed the file specification to be logged in.
  518.  
  519.           [-?]
  520.           [-/]      Toggle the main help menus on/off.  If menus are off, the
  521.                     main help menus will only be displayed when requested. 
  522.                     This setting may be altered from the mini-menu.
  523.  
  524.           [-8]      Toggle 8-bit display.  Will reverse the current setting
  525.                     for whether 8-bit characters are displayed as is or with
  526.                     the parity bit removed.
  527.  
  528.           [-a]      Toggle AM/PM or 24-hour time display for the Info command.
  529.  
  530.           [-b]
  531.           [-i]      Select the type of I/O routines to use.  The switches
  532.                     work as follows (-i and -b are interchangeable):
  533.  
  534.                     -b   IBM Bios on (or off if patched on)
  535.                     -bi  Same as -b or -i
  536.                     -bz  Z-100 Bios on (or off if patched on)
  537.                     -bs  Standard DOS I/O.  Only DOS I/O can be redirected
  538.                          from the command line.
  539.  
  540.           [-c]      Toggle whether the screen is cleared at the beginning of
  541.                     each page of text when viewing to the screen if using a
  542.                     bios I/O method.
  543.  
  544.           [-h]      Toggle looking up hidden/system files.
  545.  
  546.           [-p]      Toggle the paged display on/off.
  547.  
  548.           [-v]      Disable the use of an external file viewing program, if
  549.                     one was specified with a SET command.
  550.  
  551.           [-z]      Toggle control/Z processing.  If present on the command
  552.                     line, control/Z will be ignored when encountered in a
  553.                     file being viewed.  This setting may be altered from the
  554.                     mini-menu.
  555.  
  556.           [-d]
  557.           [-e]
  558.           [-n]
  559.           [-s]      Set the initial sort order to ascending whatever.  The
  560.                     options are the same as in the [S] command.  If the
  561.                     switch is entered as [--x] then the order will be
  562.                     descending (i.e., [--d] will sort by descending date, or
  563.                     most recent first).
  564.  
  565.                     CWEEP  --  A SWEEP-like program for MS-DOS       Page 12
  566.  
  567.  
  568.            For the user who does not like the default settings of some of the
  569.         command-line switches in CWEEP (not for the faint of heart), it is
  570.         possible to patch the values with DEBUG.  If you unassemble the
  571.         beginning of the code, you will find several move word and move byte
  572.         instructions.  By changing the value moved to 1 (true) or 0 (false)
  573.         the default may be changed (note that sort-order is an ascii
  574.         character).  To do the patching, rename CWEEP.EXE to CWEEP.BIN and
  575.         type:
  576.  
  577.                   DEBUG CWEEP.BIN
  578.  
  579.            Then, disassemble the beginning of CWEEP by typeing:
  580.  
  581.                   -u310 l60
  582.  
  583.            DEBUG will then display everything to the right of the patch addr
  584.         entry in the table below (???? means some address we are not
  585.         concerned with):
  586.  
  587.         Fcn  Patch   Address   Hex code      Disassembled instructions
  588.               Addr
  589.  
  590.                      ????:0310 33C0          XOR     AX,AX
  591.                      ????:0312 E8????        CALL    ????
  592.                      ????:0315 C706????0100  MOV     WORD PTR [????],0001
  593.                      ????:031B C706????0000  MOV     WORD PTR [????],0000
  594.         ( 1)  325    ????:0321 C706????0100  MOV     WORD PTR [????],0001
  595.         ( 2)  32B    ????:0327 C606????6E    MOV     BYTE PTR [????],6E
  596.         ( 3)  330    ????:032C C606????00    MOV     BYTE PTR [????],00
  597.         ( 4)  335    ????:0331 C606????00    MOV     BYTE PTR [????],00
  598.         ( 5)  33A    ????:0336 C606????00    MOV     BYTE PTR [????],00
  599.         ( 6)  33F    ????:033B C706????0100  MOV     WORD PTR [????],0001
  600.         ( 7)  345    ????:0341 C706????0100  MOV     WORD PTR [????],0001
  601.         ( 8)  34B    ????:0347 C706????0000  MOV     WORD PTR [????],0000
  602.         ( 9)  351    ????:034D C706????0100  MOV     WORD PTR [????],0001
  603.         (10)  357    ????:0353 C706????0000  MOV     WORD PTR [????],0000
  604.         (11)  35D    ????:0359 C706????0000  MOV     WORD PTR [????],0000
  605.         (12)  363    ????:035F C706????0000  MOV     WORD PTR [????],0000
  606.         (13)  369    ????;0365 C706????0000  MOV     WORD PTR [????],0000
  607.  
  608.            1)  Menu display        The "M" in the settings menu
  609.                                      01 00 - Menu will be displayed
  610.                                      00 00 - Menu will not be displayed
  611.  
  612.            2)  Initial sort order
  613.            3)
  614.            4)                      Place the desired original sort order
  615.                                    here, using upper case for descending and
  616.                                    lower case for ascending sort.  Use one
  617.                                    character per MOV instruction.  The same
  618.                                    letters are used as in the set sort
  619.                                    command, but the '-'s have been applied to
  620.                                    the letters which follow them.
  621.  
  622.            5) Terminates string    (Don't change this at all!!)
  623.                     CWEEP  --  A SWEEP-like program for MS-DOS       Page 13
  624.  
  625.  
  626.            6)  Ctrl/Z handling     The "Z" in the settings menu
  627.                                      00 00 - Ignore ctrl/Z
  628.                                      01 00 - Ctrl/Z means EOF
  629.  
  630.            7)  Paged display       The "P" in the settings menu
  631.                                      00 00 - Unpaged view by default
  632.                                      01 00 - Paged view by default
  633.  
  634.            8)  I/O display         What display routines to use:
  635.                                      00 00 - Standard DOS (can redirect)
  636.                                      01 00 - IBM Bios
  637.                                      02 00 - Z100 Bios
  638.  
  639.            9)  Worksheet display   Controls whether worksheets will be
  640.                                    displayed in a special manner or not:
  641.                                      01 00 - Special interpreted display
  642.                                      00 00 - As if it was text
  643.  
  644.           10)  Clear screen        Is screen cleared during viewing (only
  645.                                    works if using a bios I/O method):
  646.                                      00 00 - No screen clear after [more]"
  647.                                      01 00 - Screen is cleared after "[more]"
  648.  
  649.           11)  Display 8-bit       Are 8-bit character displayed as is, or
  650.                                    with the 8th bit removed:
  651.                                      00 00 - 8th bit removed
  652.                                      01 00 - 8th bit unchanged
  653.  
  654.           12)  Lookup sys/hidden   Are system/hidden files found when a disk
  655.                                    is logged in:
  656.                                      00 00 - Not found
  657.                                      01 00 - Are found
  658.  
  659.           13) Time AM/PM or 24-hr  Is the time for the Info command displayed
  660.                                    as AM/PM or 24-hour:
  661.                                      00 00 - 24-hour
  662.                                      01 00 - AM/PM
  663.  
  664.            Using the DEBUG "E" command, modify the bytes in each instruction
  665.         which control the feature desired (at the "patch addr" address).  For
  666.         example, to turn on IBM bios usage, and not display the menu except
  667.         when requested:
  668.  
  669.                   E34B 01 00
  670.                   E325 00 00
  671.  
  672.            The best way to check that you made the changes correctly is to go
  673.         back and use the "u" command to unassemble the same section of the
  674.         program and make sure that the only things changed are what you
  675.         expected to change.  If the instructions don't look at all like they
  676.         used to, you probably placed the code in the wrong location.
  677.  
  678.                     CWEEP  --  A SWEEP-like program for MS-DOS       Page 14
  679.  
  680.            When all of the changes have been made, use the "w" command to
  681.         write the file back to disk, quit DEBUG with the "q" command.  Rename
  682.         CWEEP.BIN back to CWEEP.EXE and try it out.  Be sure to test this
  683.         version where it can't get to any files in case you make a mistake.
  684.  
  685.            CWEEP is written in the C language, and compiled with the Microsoft
  686.         C V5.0 compiler.  Development has been done at different times using a
  687.         Zenith Z-100, Zenith Z-151, and a Multitech Accel 900.  Custom
  688.         routines for reading and writing files and handling all I/O to the
  689.         keyboard and printer.  These avoid the use of the standard I/O
  690.         library which would increase the size of the program.
  691.  
  692.            If the standard DOS I/O routines are used, the output of CWEEP may
  693.         be re-directed to a file or to the printer.  However, the output will
  694.         not be displayed on the screen, making it rather difficult to use.  It
  695.         is nice for obtaining a copy of the menus in a file, however.
  696.  
  697.                       ----------------------------------------
  698.  
  699.         Modification history of released versions:
  700.  
  701.           1.30    Jul 1984    o    Original version, supports DOS v1.x
  702.                                    directories only.
  703.  
  704.           2.14    Jan 1985    o    Supported DOS 2.x subdirectories.
  705.  
  706.           2.30h   Dec 1987    o    Supported faster display output with bios
  707.                                    options.
  708.                               o    Lotus Worksheet displayed in the view
  709.                                    command.
  710.                               o    Reverse default sense of the "-" for
  711.                                    display paging.
  712.                               o    Added ability to search for text before
  713.                                    viewing.
  714.                               o    Added CRC of a file option.
  715.                               o    External viewing program and ability to go
  716.                                    to DOS added.
  717.                               o    Larger copy buffer added (63K).
  718.                               o    Added ability to go up/down directory
  719.                                    trees with the log command.
  720.                               o    Display subdirectories in the file list. 
  721.                                    Can also delete them.
  722.                               o    Ability to view files during protected
  723.                                    copies and queried erases added.
  724.                               o    Display volume label.
  725.                               o    Lookup hidden/system files.
  726.                               o    Add ability to modify attributes.
  727.                               o    Wildcard tag/untag based on attributes.
  728.                               o    Display Info on tagged or untagged files.
  729.  
  730.  
  731.