文件何时被创建
代码:
<!DOCTYPE html><html>
<body>
<%
dim fs, f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.GetFile(Server.MapPath("testread.txt"))
Response.Write("The file testread.txt was created on: " & f.DateCreated)
set f=nothing
set fs=nothing
%>
</body>
</html>
结果:
The file testread.txt was created on: 5/14/2012 9:46:44 AM
相关文章
- ASP.NET MVC 简介
- ASP.NET MVC 页面和布局
- ASP.NET 数据绑定
- ASP.NET XML 数据绑定
- ASP.NET DropDownList 控件
- ASP.NET BulletedList 控件
- HTML Image
- HTML InputImage
- ASP.NET HTML 控件 Table
- VB 实例 For Each 循环
- VB 实例 If 条件
- htmlgeneric
- ASP.NET BulletedList FirstBulletNumber 属性
- ASP.NET Table GridLines 属性
- ASP.NET TableCell HorizontalAlign 属性
- ASP.NET TableRow VerticalAlign 属性
- Web 控件标准属性
- ASP.NET ClientID 属性
- ASP.NET Visible 属性
- 从字符串中返回指定数目的字符