"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.

Return to the Windows 2000 and DOS page.

Print this tip


Get the Newsletter

blog comments powered by Disqus

Thanks For Sharing!



Newest Tips:

Buying a Digital Camera
[MODIFIED] Hidden Costs with Higher Megapixel Cameras
Windows 8
Resize Start Screen Tiles
Internet Explorer 11
Change the Default Search Provider to Google, Yahoo!, or Something Else
IrfanView
[MODIFIED] Disable Most Recently Used Files and Folders for Privacy

Follow Us!

About MalekTips and the Author

The MalekTips website was created in 1998 by Andrew Malek of Envision Programming. The page's goal is to freely disperse computer-related tips, hints, and informative articles. Tips are organized to be easy to find, and are presented clearly, in easy-to-understand language. MalekTips also provides information and links to public-domain, open source, freeware, shareware, and commercial software available for download.