Visual Basic Scripting Edition | 語言參考 |
DateLastModified 屬性返回指定的文件或文件夾的上次修改日期和時(shí)間。只讀。 object.DateLastModified
object 應(yīng)為 File 或 Folder 對(duì)象的名稱。 說明以下代碼舉例說明如何使用 DateLastModified 屬性: Function ShowFileAccessInfo(filespec)
Dim fso, f, s
Set fso =CreateObject("Scripting.FileSystemObject")
Set f =fso.GetFile(filespec)
s =UCase(filespec) & "<BR>"
s =s & " 創(chuàng)建時(shí)間:" & f.DateCreated & "<BR>"
s =s & " 上次訪問時(shí)間:" & f.DateLastAccessed & "<BR>" s =s & " 上次修改時(shí)間:" & f.DateLastModified ShowFileAccessInfo =s End Function
請(qǐng)參閱Attributes 屬性 | DateCreated 屬性 | DateLastAccessed 屬性 | Drive 屬性 | Files 屬性 | IsRootFolder 屬性 | Name 屬性 | ParentFolder 屬性 | Path 屬性 | ShortName 屬性 | ShortPath 屬性 | Size 屬性 | SubFolders 屬性 | Type 屬性 應(yīng)用于:File 對(duì)象 | Folder 對(duì)象 返回首頁 |