>amazing, rmdir has a /S to remove the dir tree. /q not to ask if you're sure
So, perhaps that is the reason that deltree is no longer required. The problem is, if you need to support different operating systems (the os() function can help).
Some have suggested WSH, but that is not guaranteed to exist on all machines either: some turn it off, to avoid contracting certain viruses.
API would be another alternative - perhaps the safest, in the sense that it is available on all machines - but I don't know the details. Note that even in the case of the API, there are some differences between Windows 95 and Windows NT.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)