ASP DateCreated 属性
asp datecreated 属性
完整的 file 对象参考手册datecreated 属性用于返回指定文件或文件夹的创建日期和时间。
语法
fileobject.datecreated
folderobject.datecreated
folderobject.datecreated
针对 file 对象的实例
<%
dim fs,f
set fs=server.createobject("scripting.filesystemobject")
set f=fs.getfile("c:\test.txt")
response.write("file created: ")
response.write(f.datecreated)
set f=nothing
set fs=nothing
%>
输出:
file created: 9/19/2001 10:01:19 am
dim fs,f
set fs=server.createobject("scripting.filesystemobject")
set f=fs.getfile("c:\test.txt")
response.write("file created: ")
response.write(f.datecreated)
set f=nothing
set fs=nothing
%>
输出:
file created: 9/19/2001 10:01:19 am
针对 folder 对象的实例
<%
dim fs,fo
set fs=server.createobject("scripting.filesystemobject")
set fo=fs.getfolder("c:\test")
response.write("folder created: ")
response.write(fo.datecreated)
set fo=nothing
set fs=nothing
%>
输出:
folder created: 9/19/2001 10:01:19 am
dim fs,fo
set fs=server.createobject("scripting.filesystemobject")
set fo=fs.getfolder("c:\test")
response.write("folder created: ")
response.write(fo.datecreated)
set fo=nothing
set fs=nothing
%>
输出:
folder created: 9/19/2001 10:01:19 am
完整的 file 对象参考手册
相关文章
- ASP Response 对象
- ASP Request 对象
- ASP Drive 对象
- ASP File 对象
- ASP Content Linking
- ASP 简介
- ASP Read 方法
- ASP DateCreated 属性
- ASP DateLastModified 属性
- ASP Name 属性
- ASP Move 方法
- ASP Key 属性
- ASP Cookies 集合
- ASP Status 属性
- ASP AppendToLog 方法
- ASP ServerVariables 集合
- ASP Timeout 属性
- ASP CreateFolder 方法
- ASP GetFileName 方法
- ASP OpenTextFile 方法