DateLastModified 屬性
返回指定的檔案或資料夾的上次修改日期和時間。只讀。
object.DateLastModified
object 應為 File 或 Folder 物件的名稱。
說明
以下程式碼舉例說明如何使用 DateLastModified 屬性:
Function ShowFileAccessInfo(filespec) Dim fso, f, s Set fso = CreateObject("Scripting.FileSystemObject") Set f = fso.GetFile(filespec) s = UCase(filespec) & "<BR>" s = s & "
建立時間:" & f.DateCreated & "<BR>"
s = s & "
上次訪問時間:" & f.DateLastAccessed & "<BR>"
s = s & "
上次修改時間:" & f.DateLastModified
ShowFileAccessInfo = s
End Function
写评论
很抱歉,必須登入網站才能發佈留言。