ASP FolderExists() - FileSystemObject This the tutorial/example asp script how to check folder exist.
ShotDev Focus:
- ASP & Check folder exist.
Example
asp_filesystemobject_folderexists.asp
<% Option Explicit %>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<%
Dim objFSO
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
IF objFSO.FolderExists(Server.MapPath("MyFiles")) Then
Response.write("Folder already exists")
Else
Response.write("Folder not exists")
End IF
Set objFSO = Nothing
%>
</body>
</html>
Create a asp file and save to path root-path/myasp/
Run
http://localhost/myasp/asp_filesystemobject_folderexists.asp
Screenshot



1marlowe…
…