hi, I have 3 text files a.txt. & b.txt & c.txt
when I check if files exist by putting * it does not work, but when I specify a.txt it work.
Does that mean that I cannot check if all files exists *.txt
Dim objFSO
Set objFSO = Server.CreateObjectScripting.FileSystemObject"
If objFSO.FileExists("C:\a\letters\*.txt"
then
objFSO.DeleteFile "C:\a\letters\*.txt",False
response.Write "deleted all files"
response.Write "<BR>"
else
response.Write " No file found to be deleted"
end if
Set objFSO = Nothing
thanks,
Al
when I check if files exist by putting * it does not work, but when I specify a.txt it work.
Does that mean that I cannot check if all files exists *.txt
Dim objFSO
Set objFSO = Server.CreateObjectScripting.FileSystemObject"
If objFSO.FileExists("C:\a\letters\*.txt"
objFSO.DeleteFile "C:\a\letters\*.txt",False
response.Write "deleted all files"
response.Write "<BR>"
else
response.Write " No file found to be deleted"
end if
Set objFSO = Nothing
thanks,
Al