目录下文件名获取并判断 循环执行代码【基础】
本帖最后由 dogout 于 2011-12-18 19:52:16 编辑Set FSO = CreateObject("Scripting.FileSystemObject")
Set Directory = FSO.GetFolder(DBPath)
For Each FileName In Directory.Files
WScript.Echo FileName.Name
Next
Set FileName = Nothing
Set Directory = Nothing
Set FSO = Nothing
补充:VB , 基础类