I have to code something in VBScript, and I'm not all that familiar with the syntax.
Basically, I'm trying to delete any files in a directory that are older than, say, one hour.
I've found a list of the Date/Time functions, but haven't been able to create the condition I'm looking for.
I'm trying to say something like:
OldDate = 1 hour ago
For Each File In Folder.Files
if (File.DateLastModified <= OldDate) then
How do I get the time of one hour ago?
Thanks in advance for the assist, just trying to find the right syntax for these date commands.