vb 取得文件夹名称的速度问题
大家好,现在有一个问题想请教大家,问题是这样的,现在在服务器上某个共享目录下,假设是photo,下边有1000个后缀名不带back的文件夹,我现在要把这1000个文件夹的名称取出来显示在list里面,用下边的方法取的速度非常慢,想请教能不能有更好的方法让读取速度变快。谢谢各位了!
Set fso = CreateObject("Scripting.FileSystemObject")
Set Fol = fso.GetFolder(strPath)
Const DeleteReadOnly = True
Set subD = Fol.SubFolders
For Each f1 In subD
If InStr(1, f1.Name, "_BACK", 1) = 0 Then
List1.AddItem f1.Name
End If
Next