ASP GetFile 方法
asp getfile 方法
完整的 filesystemobject 对象参考手册getfile 方法返回指定路径的 file 对象。
语法
filesystemobject.getfile(path)
参数 | 描述 |
---|---|
path | 必需的。指向具体文件的路径。 |
实例
<%
dim fs,f
set fs=server.createobject("scripting.filesystemobject")
set f=fs.getfile("c:\test\test.htm")
response.write("the file was last modified on: ")
response.write(f.datelastmodified)
set f=nothing
set fs=nothing
%>
输出:
the file was last modified on 01/01/20 4:23:56 am
dim fs,f
set fs=server.createobject("scripting.filesystemobject")
set f=fs.getfile("c:\test\test.htm")
response.write("the file was last modified on: ")
response.write(f.datelastmodified)
set f=nothing
set fs=nothing
%>
输出:
the file was last modified on 01/01/20 4:23:56 am
完整的 filesystemobject 对象参考手册