<% Option Explicit %>
<html>
<head>
<title>ThaiCreate.Com ASP FileSystemObject Object</title>
</head>
<body>
<%
Dim objFSO
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
IF objFSO.FileExists(Server.MapPath("MyFiles/thaicreate.txt")) Then '*** Check Exists Files ***'
objFSO.DeleteFile(Server.MapPath("MyFiles/thaicreate.txt"))
Response.write ("File Deleted")
End IF
Set objFSO = Nothing
%>
</body>
</html>