返回列表 发帖
  1. WScript.Echo ShowFolderList("c:\")
  2. Function ShowFolderList(folderspec)
  3.    Dim fso, f, f1, s, sf
  4.    Set fso = CreateObject("Scripting.FileSystemObject")
  5.    Set f = fso.GetFolder(folderspec)
  6.    Set sf = f.SubFolders
  7.    For Each f1 in sf
  8.       s = s & f1.name
  9.       s = s & vbCrLf
  10.    Next
  11.    ShowFolderList = s
  12. End Function
复制代码
nevermore

TOP

返回列表