?
本文檔使用 php中文網(wǎng)手冊 發(fā)布
JScript? | 語言參考 |
提供對文件所有屬性的訪問。
下面的代碼演示了如何獲得 File 對象以及如何查看它的一個屬性。
function ShowFileInfo(filespec) {
???var fso, f, s;
???fso = new ActiveXObject("Scripting.FileSystemObject");
???f = fso.GetFile(filespec);
???s = f.DateCreated;
???return(s);
}
Copy 方法 | Delete 方法 | Move 方法 | OpenAsTextStream 方法
Attributes 屬性 | DateCreated 屬性 | DateLastAccessed 屬性 | DateLastModified 屬性 | Drive 屬性 | Name 屬性 | ParentFolder 屬性 | Path 屬性 | ShortName 屬性 | ShortPath 屬性 | Size 屬性 | Type 屬性
Drive 對象 | Drives 集合 | Files 集合 | Folder 對象 | Folders 集合