P
Paul
I have a folder with the following files:
a.doc
a.csv
a.pdf
Sometimes all three files are there. Sometimes there is only one file there.
Is there a File.Delete command that I can use that would delete all the
files regardless of how many there were, and regardless of their file
extension?
I was thinking of using some type of wildcard (like a*.*). Something like:
File.Delete(Server.MapPath("docs/" & sPartialFileName & "*.*"))
But I get errors with this statement.
Anyone have a good way of doing this?
a.doc
a.csv
a.pdf
Sometimes all three files are there. Sometimes there is only one file there.
Is there a File.Delete command that I can use that would delete all the
files regardless of how many there were, and regardless of their file
extension?
I was thinking of using some type of wildcard (like a*.*). Something like:
File.Delete(Server.MapPath("docs/" & sPartialFileName & "*.*"))
But I get errors with this statement.
Anyone have a good way of doing this?