首页 > 学院 > 开发设计 > 正文

File 对象

2019-11-18 15:53:07
字体:
来源:转载
供稿:网友

 

提供对文件所有属性的访问。

说明

下面的代码演示了如何获得 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 集合



上一篇:Drives 集合

下一篇:Folder 对象

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表