Directory.Delete

  • Thread starter Thread starter zacks
  • Start date Start date
Z

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?
 
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.
 
Back
Top