| |
imav8n
Posts: 95
Score: 0
Joined: 7/3/2001
From: USA
Status: offline
|
There is a method called FileExists (there's also DriveExists, etc...) that you can use for just that purpose. Here is a code example I copied off of www.devguru.com: <% dim filesys Set filesys = CreateObject("Scripting.FileSystemObject") filesys.CreateTextFile "c:\somefile.txt", True If filesys.FileExists("c:\somefile.txt") Then filesys.DeleteFile "c:\somefile.txt" Response.Write("File deleted") End If %> Good Luck! ~imav8n Failure is not an option.....it comes bundled with the software.
|
|