' 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 tfs = fso.CreateTextFile("res.txt")
Set f = fso.GetFile("stat.vbs")
tfs.WriteLine "size=" & f.Size
tfs.WriteLine "date=" & f.DateLastModified
tfs.Close
Set f = Nothing
Set tfs = Nothing
Set fso = Nothing
