"Offering free computer help, hints, and tips to the Internet populace." Now with over 3,820 tips!

Windows 2000 and DOS

No Deltree Command?

SUMMARY: A Windows 2000 or Windows XP replacement for the Deltree command can be found here.


 

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 DELTREE 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

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



 

Got something to add? Post a comment!

Everyone is invited to submit comments. Registered users also receive their own visitor profile page with a summary of recent posts.
Register | Login

1. anonymous (12/01/2009 08:06:18)  

rd does not support wildcards (like '*') in directory name to delete.
Your name:
 E-mail:
* Home/Blog Page:
Comment:
(Max chars: 5000)

* = optional field

 


Print This Tip

Get E-Mail When New Tips are Online

Return to the Windows 2000 and DOS page.

 


New in MalekTips:

RSS Feeds- Subscribe!

You want the latest tech tips and tricks in your e-mail Inbox - FREE? Type your e-mail address below and click 'Get Tips!'.
 


( sample / details )
( opt-out instructions )