VBS教程:对象-Folder 对象


Folder 对象

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

说明

以下代码举例说明如何获得 Folder 对象并查看它的属性:

Function ShowDateCreated(folderspec)    Dim fso, f,     Set fso = CreateObject("Scripting.FileSystemObject")   Set f = fso.GetFolder(folderspec)  ShowDateCreated = f.DateCreatedEnd Function

« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3