The MASM Forum Archive 2004 to 2012

General Forums => The Laboratory => Topic started by: hutch-- on October 24, 2005, 05:51:34 AM

Title: Directory tree delete
Post by: hutch-- on October 24, 2005, 05:51:34 AM
I have needed a tool like this ever since the old DOS DELTREE was not included in later windows versions. This version is intentionally writen so it will not delete a root direcory just as a safety margin but it is still a very dangerous tool in that it will take out entire directory trees.

Be careful playing with this tool as it can trash a large amount of a HDD very quickly, I did the testing on seperate partitions where there was nothing important to delete but if you have a machine that only has a single partition, exercise caution.

[attachment deleted by admin]
Title: Re: Directory tree delete
Post by: Tedd on October 24, 2005, 11:38:38 AM
This also works.. :bdg
rd somedir /s /q
Title: Re: Directory tree delete
Post by: hutch-- on October 24, 2005, 12:13:52 PM
You only need the /s, /q is quiet mode but it assumes cmd.exe and running the capacity from the console. This one is a useful toy that is easy enough to code into an application that has for instance an uninstall to perform.