提供对文件所有属性的访问。
下面的代码演示了如何获得 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 集合
Java Asp PHP .Net XML C/C++ CGI VB Jsp J2ee J2se J2me EJB Servlet Tomcat Resin Struts Weblogic Eclipse ANT GUI JMS Web servise IDEA Webphere Hibernate Spring Jboss Applet Swing Socket Javamail Perl Ajax P2P 安全 模式 框架 测试 开源 游戏
Windows XP Windows 2000 Windows 2003 Windows Me Windows 9.x Linux UNIX 注册表 操作系统 服务器 应用服务器