File 对象
时间:2007-12-27 来源:不详 作者:林子
提供对文件所有属性的访问。 本文来自织梦
说明
下面的代码演示了如何获得 File 对象以及如何查看它的一个属性。
dedecms.com
function ShowFileInfo(filespec) {
var fso, f, s;
fso = new ActiveXObject("Scripting.FileSystemObject");
f = fso.GetFile(filespec);
s = f.DateCreated;
return(s);
} copyright dedecms
方法
Copy 方法 | Delete 方法 | Move 方法 | OpenAsTextStream 方法 内容来自dedecms
属性
Attributes 属性 | DateCreated 属性 | DateLastAccessed 属性 | DateLastModified 属性 | Drive 属性 | Name 属性 | ParentFolder 属性 | Path 属性 | ShortName 属性 | ShortPath 属性 | Size 属性 | Type 属性
织梦内容管理系统
请参阅
Drive 对象 | Drives 集合 | Files 集合 | Folder 对象 | Folders 集合
本文来自织梦

文章评论
共有位Admini5网友发表了评论 查看完整内容