Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP GetFolder Method

ASP GetFolder Method


FileSystemObject Reference Complete FileSystemObject object reference manual


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

Syntax

FileSystemObject.GetFolder(path)

Parameters Description
path Required. The path to a specific folder.

Example

<%

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


FileSystemObject Reference Complete FileSystemObject object reference manual