DateCreated 屬性
返回指定的文件或文件夾的創(chuàng)建日期和時間。只讀。
object.DateCreated
object 應為 File 或 Folder 對象的名稱。
說明
以下代碼舉例說明如何使用 DateCreated 屬性:
Function ShowFileInfo(filespec) Dim fso, f Set fso = CreateObject("Scripting.FileSystemObject") Set f = fso.GetFile(filespec) ShowFileInfo = "
創(chuàng)建:" f.DateCreated
End Function