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