' Collection of code snippets by Arne Vajhøj 
' (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
Set fso = CreateObject("Scripting.FileSystemObject")
Set dir = fso.GetFolder(".")
WScript.Echo CStr(dir.Files.COunt)
For Each f In dir.Files
    WScript.Echo f.Name
Next
Set dir = Nothing
Set fso = Nothing
