S
Stimp
I want to delete all my .doc files in a specific directory.
I tried to do this using the File.Delete method, but it doesn't allow
"*.doc" paths.
So I tried the following code:
Dim objFSO = Server.CreateObject("Scripting.FileSystemObject")
objFSO.DeleteFile(Server.MapPath("*.doc"))
and it works on my local pc, but I doubt I should be using classic asp
components with asp.net.. what was is the equivalent function in
asp.net?
Cheers.
I tried to do this using the File.Delete method, but it doesn't allow
"*.doc" paths.
So I tried the following code:
Dim objFSO = Server.CreateObject("Scripting.FileSystemObject")
objFSO.DeleteFile(Server.MapPath("*.doc"))
and it works on my local pc, but I doubt I should be using classic asp
components with asp.net.. what was is the equivalent function in
asp.net?
Cheers.