..
The method of the FileSystemObject object FolderExists returns a Boolean value that indicates whether the folder exists, or specified or not.
It returns True if the folder exists, False if it does not exist.
The only required parameter is the presumed path of the folder you want to establish the existence.
Here's an example:
Dim fs
'I create an instance of the FileSystemObject
Set fs = Server.CreateObject ("Scripting.FileSystemObject")
'Check if folder exists
If fs.FolderExists ("c: \ www \ site \ articles") = True Then
Response.Write ("The folder exists")
Else
Response.Write ("Folder does not exist")
End If
'I cleaned
Set fs = Nothing
| |
ASP (Advanced)
Full course for creating dynamic Web sites. From 39 €. |
| |
ASP Zero (Ebook)
Learning Microsoft ASP and VBScript from scratch. At only 29 €. |
| |
ASP and Access (Ebook)
Managing a MS Access database with ASP. At only 29 €. |