🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
| JScript  | [语言参考](#) | |-----|-----| # 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 集合](#) [© 2000 Microsoft Corporation 版权所有。保留所有权利。使用规定。](#)