>I am writing a program that needs to check for the existence of a particular directory. It then needs to delete everything underneath that direcotry (to include other folders) and the very last step is to delete the directory itself.
In Windows Explorer, you can erase an entire folder with its sub-folders in a single step. I think there must be an API function that does the same, but I don't know the details.
How about posting the following question in the API section: "Is there an API or WSH function that erases an entire directory?"
Hilmar.
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)