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

Windows 8
Speed up Your Taskbar Thumbnail Previews
General Computers
[MODIFIED] Why Do Install Programs Ask Me to Close Everything or Restart?
Screen Capture
[MODIFIED] Greenshot for Windows can Upload to Dropbox, Flickr, Picasa, and More
Google Chrome
[MODIFIED] View Memory and CPU Usage, Network Activity of Each Tab

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.