提供对文件所有属性的访问。
说明
下面的代码演示了如何获得 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 集合
闽公网安备 35060202000074号