The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
From novice to tech pro — start learning today.
Dim fso
Dim fol
Dim fil
Set fso = CreateObject("Scripting.Fi
Set fol = fso.GetFolder("C:\MyDocume
For Each fil In fol.Files
MsgBox fil.Name
Next
That should give you a series of message boxes each telling you the name of one of the files. (Of course, you can do other things with the File object, but that's just an example.)
I would recommend reading about these objects in the VBScript documentation.