Erase Everything in a Directory
Posted on 2007-08-07
In my VB6.0 code I have a work directory that I use called "\Tempwork". Prior to each use I want to make sure that the directory is ocmpletely clear of all contents.
All contents means all files and all subdirectories of all attributes (visble, hidden, readonly etc..) . I know I can use Kill to get rid of the files. How do I get rid of the subdirectories(if any)? Since this is an internal operation I want to get rid of all of these things without bothering the user to verify anything.