home *** CD-ROM | disk | FTP | other *** search
/ Boldly Go Collection / version40.iso / TS / 25D / WALKDIR.ZIP / WALKDIR.DOC < prev   
Encoding:
Text File  |  1992-06-15  |  13.6 KB  |  386 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.                  WALKDIR Copyright 1992 David Lee All Rights Reserved
  7.       
  8.  
  9.                                DISCLAIMER OF WARRANTY 
  10.  
  11.      SOFTWARE AND MANUAL ARE SOLD "AS IS" AND WITHOUT WARRANTIES AS TO
  12.      PERFORMANCE OF MERCHANTABILITY OR ANY OTHER WARRANTIES WHETHER EXPRESSED OR
  13.      IMPLIED.  BECAUSE OF THE VARIOUS HARDWARE AND SOFTWARE ENVIRONMENTS INTO
  14.      WHICH THIS PROGRAM MAY BE PUT, NO WARRANTY OF FITNESS FOR A PARTICULAR
  15.      PURPOSE IS OFFERED.  GOOD DATA PROCESSING PROCEDURE DICTATES THAT ANY
  16.      PROGRAM BE THOROUGHLY TESTED WITH NON-CRITICAL DATA BEFORE RELYING ON IT. 
  17.      THE USER MUST ASSUME THE ENTIRE RISK OF USING THE PROGRAM.  ANY LIABILITY
  18.      OF THE SELLER WILL BE LIMITED EXCLUSIVELY TO PRODUCT REPLACEMENT OR REFUND
  19.      OF PURCHASE PRICE. 
  20.  
  21.      -------------+
  22.      Introduction |
  23.      -------------+
  24.      WALKDIR is a disk utility that allows you to "walk" through a disk's
  25.      directory structure.  As it moves, it stops to execute a user supplied
  26.      command (DOS command, program, or batch file) against each directory it
  27.      passes through.
  28.  
  29.      ----------+
  30.      File List |
  31.      ----------+
  32.      Name           Size      Date      Time      Description
  33.      ------------   ------    -------   -----     -----------------------------
  34.      WALKDIR.COM    13,254    6-15-92   1:00a     The executable WALKDIR
  35.                                                   program.
  36.      WALKDIR.DOC    13,952    6-15-92   1:00a     This file.
  37.      REGISTER.DOC    3,316    6-15-92   1:00a     Registration instructions and
  38.                                                   form.
  39.  
  40.      If you did not receive all the files listed above, then you have received
  41.      an altered version of my original upload.  Please discard the files you did
  42.      receive and try looking for this program on another BBS or service.  If any
  43.      of the file sizes, dates, or times have been changed then someone has
  44.      tampered with my original upload.  I'd recommend against trying to run the
  45.      program, as it may contain a virus or have been altered to do something
  46.      other than what I wrote it to do.  Again I'd recommend disposing of these
  47.      files and trying again from another source.  Better safe than sorry.
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.                                           1
  66.  
  67.  
  68.  
  69.  
  70.                  WALKDIR Copyright 1992 David Lee All Rights Reserved
  71.       
  72.  
  73.      ----------------+
  74.      Running WALKDIR |
  75.      ----------------+
  76.           Syntax:   WALKDIR "Command"
  77.                     Where "Command" is any DOS command, executable program, or
  78.                     batch file.  The command must be in enclosed in quotes.
  79.  
  80.           Usage:    You can run WALKDIR from any directory or subdirectory. 
  81.                     However, WALKDIR will only process the directories
  82.                     subordinate to the directory it's started in.  Assume the
  83.                     directory structure in Figure 1.  If we start WALKDIR from
  84.                     the DATA directory, it will process both DEPARTMENT
  85.                     directories and all of the directories subordinate to each. 
  86.                     However, if we start WALKDIR from the DEPARTMENT #1
  87.                     directory, it will only process the directories subordinate
  88.                     to that directory.  It will not process the DEPARTMENT #2
  89.                     directory or any of its subdirectories.  If we start WALKDIR
  90.                     from the USER #4 directory, it will only process the two
  91.                     subdirectories belonging to that directory.
  92.  
  93.  
  94.  
  95.                      DATA
  96.                       │
  97.                       ├──── DEPARTMENT #1
  98.                       │         │
  99.                       │         ├──── USER #1
  100.                       │         │        │
  101.                       │         │        ├──── WP DIRECTORY
  102.                       │         │        └──── DB DIRECTORY
  103.                       │         └──── USER #2
  104.                       │                  │
  105.                       │                  ├──── WP DIRECTORY
  106.                       │                  └──── DB DIRECTORY
  107.                       │
  108.                       ├──── DEPARTMENT #2
  109.                       │         │
  110.                       │         ├──── USER #3
  111.                       │         │        │
  112.                       │         │        ├──── WP DIRECTORY
  113.                       │         │        └──── DB DIRECTORY
  114.                       │         └──── USER #4
  115.                       │                  │
  116.                       │                  ├──── WP DIRECTORY
  117.                       │                  └──── DB DIRECTORY
  118.                       │
  119.  
  120.                     Figure 1
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                           2
  130.  
  131.  
  132.  
  133.  
  134.                  WALKDIR Copyright 1992 David Lee All Rights Reserved
  135.       
  136.  
  137.           Output:   WALKDIR produces two files in the directory it is started
  138.                     from.  The first, WALKDIR.ERR, records any error messages
  139.                     produced by DOS during the current run.  The second,
  140.                     WALKDIR.MSG, captures any other non-error messages DOS
  141.                     issues during the current run.
  142.  
  143.                     WALKDIR also displays a status screen (Figure 2) while it's
  144.                     running.  The display shows WALKDIR's progress and reminds
  145.                     you of the command WALKDIR is running against each
  146.                     directory.
  147.  
  148.  
  149.  
  150.           ┌─ Walk Directory Tree (v1.0) - Copyright (c) 1992 David Lee ─┐
  151.           │  C:\TC\BIN                                                  │
  152.           │  C:\TC\INC                                                  │
  153.           │  C:\TC\INC\SYS                                              │
  154.           │  C:\TC\LIB                                                  │
  155.           │  C:\TC\BGI                                                  │
  156.           │  C:\TC\CLASSLIB                                             │
  157.           │  C:\TC\CLASSLIB\EXAMPLES                                    │
  158.           │  C:\TC\CLASSLIB\INCLUDE                                     │
  159.           │  C:\TC\CLASSLIB\LIB                                         │
  160.           │  C:\TC\CLASSLIB\SOURCE                                      │
  161.           │  C:\TC\EXAMPLES                                             │
  162.           │  C:\TC\EXAMPLES\STARTUP                                     │
  163.           │  C:\TC\EXAMPLES\TCALC                                       │
  164.           │  C:\171                                                     │
  165.           │  C:\HAR                                                     │
  166.           │  C:\DVC                                                     │
  167.           │  C:\DVC\PDT                                                 │
  168.           │  C:\DV                                                      │
  169.           │  C:\WP                                                      │
  170.           │  C:\NEW                                                     │
  171.           │  C:\ORG                                                     │
  172.           └────── Running the command: dir >> c:\allfiles.lst ──────────┘
  173.          C:\>
  174.  
  175.         Figure 2
  176.  
  177.  
  178.  
  179.  
  180.           Limitations:
  181.  
  182.                1.   The current version of WALKDIR cannot handle more than 100
  183.                     subdirectories in any one directory.
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.                                           3
  194.  
  195.  
  196.  
  197.  
  198.                  WALKDIR Copyright 1992 David Lee All Rights Reserved
  199.       
  200.  
  201.           Limitations (cont):
  202.  
  203.                2.   Commands executed via WALKDIR should not require any kind of
  204.                     user input.  Because WALKDIR redirects DOS messages (error
  205.                     and informational) to a file, you'll never see the question
  206.                     appear.  The command "del *.*" is a good example.  DOS will
  207.                     write the question "Are you sure? (Y/N)" to the WALKDIR.MSG
  208.                     file instead of the screen.  You won't know whether the
  209.                     program has halted because of an error, or because it's
  210.                     asking for input.  Similarly, if you run a user written
  211.                     program, the prompts it generates will overwrite WALKDIR's
  212.                     screen and vice versa.  The results will be less than
  213.                     satisfactory.
  214.  
  215.           Examples:
  216.  
  217.                1.   C:\>walkdir "dir *.doc >> c:\docfile.lst"
  218.                     This would find all .doc files in every directory on a C
  219.                     drive, and pipe the results to a file called "docfile.lst". 
  220.                     You have to use the redirect and append (>>) operator
  221.                     otherwise the file will only contain the results of the dir
  222.                     command from the last directory WALKDIR processes.
  223.  
  224.                2.   C:\>walkdir "del *.bak"
  225.                     Delete all .bak files in all directories on the C drive.  Be
  226.                     extremely careful with deletes.  Remember that all matching
  227.                     files will be deleted from ALL the directories below the
  228.                     directory you start from.
  229.  
  230.                3.   C:\walkdir "copy *.bat d:\batch"
  231.                     C:\walkdir "del *.bat"
  232.                     Consolidate all .bat files on the C drive in a directory on
  233.                     drive D called BATCH.  Then delete all the batch files on
  234.                     drive C.  You could also do this with a batch file
  235.                     containing the copy and del commands.  That way WALKDIR
  236.                     would copy and delete the target files in a single pass.
  237.  
  238.                4.   C:\APPS>walkdir "c:\batch\set-ro.bat"
  239.                     Runs the batch file SET-RO.BAT against each subdirectory
  240.                     below the APPS directory.  SET-RO contains two calls to
  241.                     DOS's ATTRIB command, one to make all .EXE files read only
  242.                     and another to do the same for .COM files.  Although the 
  243.                     ATTRIB command includes a /s switch to process all
  244.                     subdirectories, you cannot use it (the /s switch) and
  245.                     specify a file name/type.  In other words, it forces you to
  246.                     ATTRIB all files in the subdirectories.
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.                                           4
  258.  
  259.  
  260.  
  261.  
  262.                  WALKDIR Copyright 1992 David Lee All Rights Reserved
  263.       
  264.  
  265.                5.   N:\DATA\DEPT-1>walkdir "n:\data\makedirs.bat"
  266.                     Runs a batch file called MAKEDIRS.  This might be useful for
  267.                     a network administrator who needed to create several
  268.                     identical subdirectories (as in Figure 1) for each "user"
  269.                     directory.  In this case, MAKEDIRS.BAT might contain the
  270.                     following commands:
  271.                          MD DB
  272.                          MD SC
  273.                          MD WP
  274.                     When WALKDIR runs, it would move from "user" directory to
  275.                     user directory creating the three subdirectories (DB, SC,
  276.                     WP) for each.
  277.  
  278.                6.   N:\DATA>walkdir "dir | sort > myfiles.lst"
  279.                     Another example for a network administrator.  Assuming the
  280.                     directory structure from Figure 1, this would write a sorted
  281.                     directory listing to a file in each directory.  Handy for
  282.                     handing out to the LAN users, along with a note asking them
  283.                     to clean up their directories.
  284.  
  285.           Enhancements:  I am already working on a series of enhancements to
  286.                          improve WALKDIR's usefulness.  I am also extremely
  287.                          interested in any suggestion you might have that would
  288.                          increase the program's usefulness.  Please forward any
  289.                          suggestions to me via CompuServe mail (my CompuServe ID
  290.                          is 72077,304), or in writing to the address listed on
  291.                          the registration form,.
  292.  
  293.      ---------------------+
  294.      Program Requirements |
  295.      ---------------------+
  296.           -    IBM compatible PC
  297.           -    DOS version 2.x or later
  298.           -    15KB of available system memory to load the program.  Actual
  299.                memory usage will vary depending on the complexity of the
  300.                directory structure and the command WALKDIR has to process.
  301.  
  302.      -----------------------+
  303.      Program Specifications |
  304.      -----------------------+
  305.      WALKDIR is written entirely in Borland's Turbo-C version 2.0.  The program
  306.      was developed on a Northgate PC operating under MS-DOS version 3.3.  The
  307.      program has run successfully on a variety of PC's, both 286 and 386 based. 
  308.      I have also run the program on file servers operating under Novell's
  309.      Netware operating system versions 2.15c and 3.10.
  310.  
  311.      ----------------+
  312.      Program History |
  313.      ----------------+
  314.      June 15, 1992  Released version 1.0
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.                                           5
  322.  
  323.  
  324.  
  325.  
  326.                  WALKDIR Copyright 1992 David Lee All Rights Reserved
  327.       
  328.  
  329.      ------------------+
  330.      Technical Support |
  331.      ------------------+
  332.      Please report any problems you encounter with the program to me at your
  333.      earliest convenience.  Please be sure to include contact information, such
  334.      as your phone number and/or CompuServe ID.  I will respond as quickly as I
  335.      can.  My CompuServe ID is 72077,304.
  336.  
  337.  
  338.  
  339.  
  340.  
  341.  
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.                                           6
  386.