ASP GetFolder 方法
完整的 FileSystemObject 对象参考手册
GetFolder 方法返回指定路径的 Folder 对象。
语法
FileSystemObject.GetFolder(path)
参数 | 描述 |
---|---|
path | 必需的。指向具体文件夹的路径。 |
实例
<%
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
%>
输出:
The folder was last modified on 01/01/20 4:23:56 AM
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
%>
输出:
The folder was last modified on 01/01/20 4:23:56 AM
完整的 FileSystemObject 对象参考手册其他扩展