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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top