W
Sun Jul 13 13:52:49 CDT 2008
Thanks, Christof.... it's working fine so far.
"Christof Wollenhaupt" <msnews.microsoft.com.20050422@prolib.de> wrote in
message news:O68jHZR5IHA.784@TK2MSFTNGP04.phx.gbl...
> Hi,
>
> Check out Cetin's solution on the MSDN forum. It uses RD and ERASE
> recursively to delete all files in the directory.
>
>
http://forums.microsoft.com/msdn/ShowPost.aspx?siteid=1&PostID=111127
>
> With the file system object this is a bit easier, if you can rely on it
> being installed:
>
> loFSO = CreateObject("Scripting.FileSystemObject")
> loFSO.DeleteFolder(lcFolder)
> The DeleteFolder() method raises an error when the folder cannot be
> deleted, so wrap into a TRY...CATCH or use an error handler.
>
>
> --
> Christof
>
>
>
>