home *** CD-ROM | disk | FTP | other *** search
- DoTree Command Executor (version 1.0)
-
- Copyright 1990 by A. Preston Moser
-
-
- Description
-
- The DoTree Command Executor is a program that will execute a program,
- execute a command, or run a batch file once from every directory on a given
- drive or [optionally] path. It does this by changing directories and
- executing the command from the new directory and then changing directories
- again and repeating the process. When it is done, or if it is halted, it
- will return to the original directory. Unless you specify a path, DoTree
- will do the entire drive.
-
- Operation
-
- To use DoTree, place the DOTREE.EXE file in a directory that is in
- your path (if that is not clear, read about PATH in your DOS manual.)
- Then, from any directory, type "DOTREE <enter>". Doing this will not
- run the program, however it will display a help screen that will show how
- the program is used. The useage line of this help screen shows the syntax:
-
- "DOTREE [path] [/Q] /Xcommand"
-
- What this tells you is that the "path" and the "/Q" are optional, and
- the only required command line argument is the "/X" and the command that
- comes after it. Further on, an example is given that will display all of the
- batch files on the D drive. If you run this program, (substituting a C for
- the D if you don't have a D drive) you will see that it scrolls off the
- screen faster than you can read it. This illustrates two points: the program
- is FAST, and also the program is not very useful for viewing all of the
- batch files if you don't use the "/Q" option. Try running the example again,
- but this time, include the "/q". Alternately, press the "Y" or "n", or press
- any other key.
- There are ways to use DoTree that are far more useful, for instance,
-
- "DOTREE /X copy *.bat a:\" would copy all of the batch files on the
- current drive over to the A drive's root directory (assuming they would
- all fit.)
-
- Using DoTree to execute batch files is a better use, but I think the
- best use of this program is in conjunction with DI.COM (The Directory Dicer.)
- With this program and DI.COM, you can execute a command or batch file once
- for every file on a drive, and pass the command or batch file the full name
- of the file, and/or the name of the file minus the extension, and/or the
- file's extension.
-
- DoTree and Di can be very powerful tools providing the user mixes in
- a large dose of imagination. The more imaginative the user, the more useful
- these two programs will be.
-
-
-
-
- STOP!!!
-
-
- I designed DoTree to cease operation if ESC, CTRL-C, or CTRL-BREAK are
- pressed, (providing the program being executed by DoTree does not disable
- breaks,) however, despite having captured Int 23h (the Break Interrupt) I
- have found that the program does not always stop for me when I think it should.
- I have found that leaning on the ESC key will usually get it to stop. <Sigh>
- This is the only thing that I wish I could improve about the program.
- If you may need to dump out in the middle of a program, you might consider
- using the "/Q" option. Pressing ESC once when the program pauses to ask if
- you want to do the next directory will surely terminate the program.
-
- Terms & Conditions
-
- I wrote DoTree as a companion program to DI.COM, The Directory Dicer.
- (DI.COM can be found in a file named DIRDI.COM.) While DI.COM is a Chareware
- program with donations sent to The Hunger Project, I have decided to release
- DoTree into the public domain as FREEWARE. You may use DoTree for any legal
- purpose, commercial or non-commercial, and you may freely distribute copies
- of DoTree along with this .DOC file. If DoTree is to be included in any
- software product that is sold, please contact this author and let me know.
- (Nothing formal, I'm just curious.) The only restriction is that you may not
- alter DOTREE.EXE or this .DOC file and then distribute the altered versions
- without permission of the author. (Archiving excepted.)
-
- DoTree is distributed as is, and is completely without warranty of any
- kind. This author shall not be liable for any damage or loss of data or
- profits resulting from the use of this program. Not withstanding all of that,
- I am not aware of any bugs in the program as of this writing.
-
- Comments and questions and will gladly be accepted and answered.
-
- A. Preston Moser
- 807 Bennett Ave. #6
- Medford, Oregon 97504
-
- CompuServe #72621,1377
-