Friday, July 20, 2007

vbscript top get modification date of file


getmoddate.vbs
'cscript getmoddate.vbs filename
'output filename#datemodified

strFilename=Wscript.Arguments(i)
Set filesys = CreateObject("Scripting.FileSystemObject")
Set demofile = filesys.GetFile(strFilename)
wscript.echo strFilename & "#" & demofile.DateLastModified

No comments: