No Deltree Command?

By | 2007-12-13

You may remember that some versions of DOS had a DELTREE command to remove a directory as well as all of its subdirectories and contained files. Windows 2000 and Windows XP do not have this command, but you can emulate it with the RD (RMDIR) command.

For example, the following Windows 2000 or Windows XP DOS command deletes the C:\BLAH directory and all subdirectories WITHOUT ANY WARNING:

RD C:\BLAH /S /Q

!!! WARNING !!!

Use this command with caution!
One slip-up and you could accidentally delete important files from your hard drive.

Author: dwirch

Derek Wirch is a seasoned IT professional with an impressive career dating back to 1986. He brings a wealth of knowledge and hands-on experience that is invaluable to those embarking on their journey in the tech industry.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.