0514-86177077
9:00-17:00(工作日)
返回指定的文件或文件夾的創建日期和時間。只讀。
object.DateCreated
object 應為 File 或 Folder 對象的名稱。
以下代碼舉例說明如何使用 DateCreated 屬性:
Function ShowFileInfo(filespec) Dim fso, f Set fso = CreateObject("Scripting.FileSystemObject") Set f = fso.GetFile(filespec) ShowFileInfo = "創建:" f.DateCreatedEnd Function
Function ShowFileInfo(filespec) Dim fso, f Set fso = CreateObject("Scripting.FileSystemObject") Set f = fso.GetFile(filespec) ShowFileInfo = "
" f.DateCreated
End Function
標簽:資陽 韶關 通遼 阿里 滄州 昌都 海北 咸寧
上一篇:VBS教程:屬性-DateLastAccessed 屬性
下一篇:VBS教程:屬性-Count 屬性
Copyright ? 1999-2012 誠信 合法 規范的巨人網絡通訊始建于2005年
蘇ICP備15040257號-8