SHORTIES\KILLDIR.DOC ·
DOC ·
2 KB ·
1989-04-19 ·
from PCPlus_Issue-38_Nov-1989_FluxEngine-360Kb
KILLDIR
-------
Written by Jason Bargent for PC+
Novell Netware offers an exellent file management program named FILER.
This program allows the network supervisor to remove entire tree
structures quickly (without going into each directory, deleteing its
contents, exiting the directory and then removing the directory).
Unfortunately DOS does not offer such a facility for quickly deleting
large directory structures without going into each one to delete its
contents.
KILLDIR enables DOS users to select a subdirectory and delete from that
subdirectory level downwards eg.
ONE─┬─TWO
├─THREE───FIVE───SIX───EIGHT
├─FOUR────SEVEN
Instructing KILLDIR to delete the subdirectory ONE would remove the
subdirectories below ONE (TWO, THREE, FIVE, SIX, EIGHT, FOUR and SEVEN).
This is done quickly and automatically. When selecting a directory to
delete (eg. \ONE), you will be asked if you also want to remove that
subdirectory as well as its lower levels (eg. you can remove all the levels
below ONE, or all the levels below and including ONE).
Before the subdirectories are deleted, they are listed on the screen (as
many as will fit). If you are in one of those subdirectories, it will
be highlighted (you will also be returned to the root after deletion).
The deletion part of the program deletes the entire contents of every
directory specified (eg. hidden, system and read/only files). It should be
noted that KILLDIR does not work on route directories.
The syntax for KILLDIR is:
KILLDIR <drive>:<subdirectory list>
examples:
KILLDIR \MSDOS
KILLDIR A:\SALES
KILLDIR C:\SALES\FORCASTS\FINAL
KILLDIR \SALES\FORCASTS\FINAL
** USE KILLDIR WITH EXTREME CARE **