I wanted a piece of code that would work on both NT and 9x computers. The DEL, DELTREE and RD commands are different between these these two platforms(NT doesn't even have a DELTREE).

Also one person has said that they didn't want to shell to a DELTREE because that was slowing down his script...

and I wanted something to do I was trying to not use a shell command at all but the dir() command won't do subdirectories and i find it a little buggy at times.