Sat Jul 14, 2012 6:28 pm
Dim OpenFileobj, MyFSOobj,MyFilePath
MyFilePath=Server.MapPath("images/myfile.asp")
Set MyFSOobj = Server.CreateObject("Scripting.FileSystemObject")
if MyFSOobj.fileExists(MyFilePath) Then
Response.Write "File is found "
Response.Write "<br>Delete file "&MyFSOobj.DeleteFile(MyFilePath)
Else
Response.Write "File is not found"
End if
Set MyFSOobj = Nothing
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.