I have been tasked with writing a VBScript that is being used to determine if our corporate antivirus definitions are over 7 days old. This will be used by our management platform to automatically generate an alert. I have been able to get it where it generates the output into a pop up window, but I need it to create a text file called vipreage.txt on the C: drive. I have been trying to find an answer to this but scripting has never been a strong suit of mine. Any help would be greatly appreciated.
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.GetFile("c:\Program Files\Sunbelt Software\SBEAgent\Definitions\defver.txt")
wscript.echo DateDiff("d", objFile.DateLastModified, Now())