My app is all but finished, just running through some final tests and I have discovered that I'm having trouble getting my program to delete read-only files ... unless I do it manually through Explorer I cannot seem to rid them, and I get an exception on debug.
So my question is how can I force it to delete a read only file.
I'm currently using
to delete the dir and all its files. All goes well except for the read-only ones...Code:System.IO.Directory.Delete(tempdir, True)




Reply With Quote