VBScript GetFolder Method. Can anyone explain?
Posted on 2006-04-06
I found this piece of code here in the forum:
Dim fs, f, f1, fc, s
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFolder(folderspec)
Set fc = f.SubFolders
For Each f1 in fc
s = s & f1.name
s = s & vbCrLf
Can anyone explain how to get this code to return whatever subfolders are available from within the location it is runing from? Also, what is folderspec?