Should this behave differently for a directory vs. ' First remove readonly attribute, if setĪgain, I'll leave the error handling to you and again these are the things I'd consider: If FileExists(FileToDelete) Then 'See above ![]() Here's a function for you: Sub DeleteFile(ByVal FileToDelete As String) Basically use the Kill command but you need to allow for the possibility of a file being read-only.
0 Comments
Leave a Reply. |