Thanks for the reply, so I have made the changes to the script and I get an error, object Required on line (4,1) ... This is how the script looks; any ideas?
Dim oFile
Const startDir = "C:\Test"
Set oFSO = CreateObject("Scripting.FileSystemObject")
If (datediff("d", oFile.dateLastModified, now)...