Hi All -
Is there a way to delete a directory structure with read-only files in it?
The Directory.Delete() and DirectoryInfo.Delete() methods both throw an
access violation exception if the directory structure contains read-only
diles or sub-dirs.
Thanks,
Peter
Vadym Stetsyak - 12 Jun 2006 13:13 GMT
Hello, Peter!
P> Is there a way to delete a directory structure with read-only files in
P> it? The Directory.Delete() and DirectoryInfo.Delete() methods both throw
P> an access violation exception if the directory structure contains
P> read-only diles or sub-dirs.
have a look at ( http://www.thescripts.com/forum/thread270312.html )
--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Cowboy (Gregory A. Beamer) - 12 Jun 2006 13:17 GMT
Process object with "RMDIR /S /Q". Will delete the entire directory
structure and it will not ask you anything. Be careful with the power. :-)
Will have to look at .NET objects for an alternative.

Signature
Gregory A. Beamer
*************************************************
Think Outside the Box!
*************************************************
> Hi All -
>
[quoted text clipped - 5 lines]
> Thanks,
> Peter