Home All Groups Group Topic Archive Search About
Author
22 Jun 2006 7:41 PM
zacks
I am trying to delete a directory with the Directory.Delete method,
specifying True for the second parameter, to indicate all subfolders as
well. But an exception is thrown indicating I do not have access to a
file. Yet I can turn around and immediately delete the directory in the
Windows Exploror.

What gives?

Author
22 Jun 2006 11:12 PM
Herfried K. Wagner [MVP]
<za***@construction-imaging.com> schrieb:
>I am trying to delete a directory with the Directory.Delete method,
> specifying True for the second parameter, to indicate all subfolders as
> well. But an exception is thrown indicating I do not have access to a
> file. Yet I can turn around and immediately delete the directory in the
> Windows Exploror.

I suggest to post the complete method call and the complete exception text.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>