💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
| JScript  | [语言参考](#) | |-----|-----| # Files 集合 一个文件夹中所有 **File** 对象的集合。 #### 说明 下面这个例子说明了如何获得一个 **Files** 集合以及如何使用 **Enumerator** 对象和 **for** 语句来遍历该集合: ~~~ function ShowFolderFileList(folderspec) { ~~~     ~~~ var fso, f, f1, fc, s; ~~~ ~~~    fso = new ActiveXObject("Scripting.FileSystemObject"); ~~~ ~~~    f = fso.GetFolder(folderspec); ~~~ ~~~    fc = new Enumerator(f.files); ~~~ ~~~    s = ""; ~~~ ~~~    for (; !fc.atEnd(); fc.moveNext()) ~~~ ~~~    { ~~~ ~~~       s += fc.item(); ~~~ ~~~       s += "<br>"; ~~~ ~~~    } ~~~ ~~~    return(s); ~~~ } #### 方法 **Files** 集合没有方法。 #### 属性 [Count 属性](#) | [Item 属性](#) #### 请参阅 [Drive 对象](#) | [Drives 集合](#) | [File 对象](#) | [Folder 对象](#) | [Folders 集合](#) [© 2000 Microsoft Corporation 版权所有。保留所有权利。使用规定。](#)