Set fso = CreateObject("Scripting.FileSystemObject")
strFolder = "C:\Temp"
Set objFolder = fso.GetFolder(strFolder)
Set objFiles = objFolder.Files
strCount = 0
For each objFile in objFiles
If Ucase(Left(objFile.Name, 3)) = "QUA" Then
Result = DateDiff("d", Date, objFile.DateCreated)
If Result = 0 then
strCount = strCount + 1
End If
End If
Next
Wscript.Echo strCount
|