最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
asp fso教程:DateLastModified 与 DateCreated
时间:2022-06-30 11:42:14 编辑:袖梨 来源:一聚教程网
asp fso教程:DateLastModified检测文件最后修改时间
<%
Set fs = Server.CreateObject("Scripting.FileSystemObject")
Set rs = fs.GetFile(Server.MapPath("a.asp"))
modified = rs.DateLastModified
%>
修改于: <%response.write(modified)
Set rs = Nothing
Set fs = Nothing
%>
输出:
修改于: 10/1/2008 2:40:59 AM
下面我们再来看看.DateCreated检测文件的创建时间
<%
dim fs, f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.GetFile(Server.MapPath("tb.txt"))
Response.Write("文件创始于: " & f.DateCreated)
set f=nothing
set fs=nothing
%>
他会显示
文件创始于:11/10/2008 2:0.0.
相关文章
- poki地铁跑酷极速入口-poki地铁跑酷经典无限畅玩入口 12-20
- 163邮箱登录入口-网易163邮箱网页版一键登录 12-20
- poki免费小游戏畅玩入口-poki免费小游戏热门精选合集入口 12-20
- poki游戏平台地铁跑酷官方入口-poki游戏平台地铁跑酷高清流畅极速入口 12-20
- 第五人格园丁实战能挡几次伤害 12-20
- poki小游戏网站入口大全-poki免费在线游戏网站 12-20