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
請參閱