服务热线:13616026886

技术文档 欢迎使用技术文档,我们为你提供从新手到专业开发者的所有资源,你也可以通过它日益精进

位置:首页 > 技术文档 > JAVA > 新手入门 > 基础入门 > 查看文档

file 对象

 

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

说明

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

扫描关注微信公众号