Contents of the PRUNE.DOC file
This is a small utility called PRUNE which is used to prune
entire sub-directories. It will recursively traverse a sub-directory
tree prompt the user when the contents of any directory are about to
be deleted. I am hesitant to writing an "express" version of this
since care must be exercised when deleting entire directories. I
have heard of a graphical type of prune utility which would certainly
look nicer than this implementation.
The source was compiled uder Borland Turbo C++ 2.0 using the
large memory model.
The user can prune any sub-directory on any disk. Just
specify the full path name of the directory you want to prune and
specify the disk if it is different than the current drive.
A few examples (assume your current drive is C:)
This deletes the directory \tmp along with its any
This deletes the contents of the current directory along with
its any sub-directories. Afterward, the program will move up to the
parent directory, if possible, and remove the old current directory.
Now assume the A: drive has the following structure (you're still on
the C: drive).
This will delete \DIR4 and all sub-directories underneath it.
This will delete everything on the A: drive.
Please address any questions and suggestions to
11491 Sunset Hills Rd.
Reston, VA 22090