KILLDIR

PURPOSE   OPERATION   COMMAND LINES   OPTIONS   RELATED PROGRAMS


Author: Dan Mares, dmares @ maresware . com
Portions Copyright © 1998-2021 by Dan Mares and Mares and Company, LLC
Phone: 678-427-3275

top

PURPOSE

Killdir has been superceded by rmd.

Remove a directory and all subdirectories. Similar to DOS deltree but easier to use.

Will remove all files including protected ones within selected subdirectories.


top

OPERATION

This program is designed to be a strictly housekeeping program. And NO, it doesn’t do windows.

What it will do is remove a specified directory and all its subdirectories.

The idea being that when you are doing maintenance, you may send out an update disk which needs to erase entire directories and then restore clean ones.

This program will erase entire paths without the need for interaction of an operator. This makes it also a very dangerous program.

With the proper command line structure you can either have interaction or not. If you do not use interation, then it is ideal for deleting subdirectories using batch files where no user intervention is wanted.


top

COMMAND LINE

C:> killdir directory_to_remove any_character

Item 1: Program name
Item 2: Directory to remove
Item 3: Option character(see options)

If the command line only contains the name of the directory to remove, then the user will get one final interactive prompt asking do you really want to do this?

A yes answer will cause a recursive directory removal to occur until the listed directory and all its subdirectories are removed. Obviously all files in those directories are also removed.

Including any item as a 3rd command line item will cause the final question not to be asked and the program begins immediately to remove files. Use this when sending automated update batch files out.

A note of caution:

If root (\) is the designated directory to remove all system files will also go bye bye.


top

OPTIONS

NONE:


KILLDIR RELATED PROGRAMS

DOS deltree

RM

RMD

top