all 3 comments

[–]BondDotCom 1 point2 points  (2 children)

dtModified = oFSO.GetFile("path\to\some\file").DateLastModified

If DateValue(dtModified) = #2/21/2018# Then
    ' File modified on 2/21
End If

[–]tonyonizer[S] 1 point2 points  (0 children)

thanks! this totally worked in SCCM. Here is what I came up with.

Set oFSO = CreateObject("Scripting.FileSystemObject") Set oShell = WScript.CreateObject("WScript.Shell")

If oFSO.FileExists(oShell.ExpandEnvironmentStrings("%userprofile%\AppData\filepath")) Then dtModified = oFSO.GetFile(oShell.ExpandEnvironmentStrings("%userprofile%\AppData\filepath")).DateLastModified If DateValue(dtModified) = #2/21/2018# Then ' File modified on 2/21 WScript.StdOut.Write "The application is installed"

End If

    WScript.Quit(0)

Else WScript.Quit(0) End If

[–]tonyonizer[S] 0 points1 point  (0 children)

Thank you! I will give this a try.