Tutorials References Menu

ASP GetFolder Method


❮ Complete FileSystemObject Object Reference

The GetFolder method returns a Folder object for the specified path.

Syntax

FileSystemObject.GetFolder(path)

Parameter Description
path Required. The path to a specific folder

Syntax

<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.GetFolder("c:\test\")
Response.Write("The folder was last modified on: ")
Response.Write(f.DateLastModified)
set f=nothing
set fs=nothing
%>

Output:

The folder was last modified on 01/01/20 4:23:56 AM

❮ Complete FileSystemObject Object Reference