如何获知文件最后的修改日期和时间?

2023-12-05 0 771

<%Dim objCMFUDim strModifiedSet objCMFU = Server.CreateObject(\”CM_FileUtils.GetProperty\”)\’ 创建对象并赋给变量,并且GetProperty类是当前唯一可用的.

strModified = objCMFU.LastModified\’ 检索并返回包含最后修改日期和时间(LastModified function )值.当然了,还要考虑到出错的可能.Set objCMFU = Nothing\’ 清空.%><% If strModified = \”Error!\” Then %>对不起,出错了!<% Else %>这个文件最后修改于:

<%= strModified %>

<%= FormatDateTime(CDate(strModified),1) %>

<%= FormatDateTime(CDate(strModified),3) %>

<% End If %>

[1]

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

悠久资源 编程10000问 如何获知文件最后的修改日期和时间? https://www.u-9.cn/biancheng/bc10000/96111.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务