Skip to content

Instantly share code, notes, and snippets.

@nolim1t
Created June 3, 2009 09:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nolim1t/122904 to your computer and use it in GitHub Desktop.
Save nolim1t/122904 to your computer and use it in GitHub Desktop.
VBScript code to show when a file was last modified
Set fso = CreateObject(Scripting.FileSystemObject)
Set f = fso.GetFile("Path\to\file")
MsgBox CLng(DateDiff("s", f.DateLastModified, Now))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment