01.
<%
Option
Explicit %>
02.
<html>
03.
<head>
04.
<title>ThaiCreate.Com ASP FileSystemObject
Object
</title>
05.
</head>
06.
<body>
07.
<%
08.
Dim
objFSO
09.
Set
objFSO = Server.CreateObject(
"Scripting.FileSystemObject"
)
10.
IF objFSO.FileExists(Server.MapPath(
"MyFiles/thaicreate.txt"
))
Then
11.
objFSO.DeleteFile(Server.MapPath(
"MyFiles/thaicreate.txt"
))
12.
Response.write (
"File Deleted"
)
13.
End
IF
14.
Set
objFSO =
Nothing
15.
%>
16.
</body>
17.
</html>