troubleshooting Question

Loop Through A Directory to Check Dates

Avatar of dbguy2626
dbguy2626 asked on
VB Script
7 Comments1 Solution499 ViewsLast Modified:
Hey everyone.  Looking for some guidance.  I need a script that would loop through a particular path i.e c:\temp and check to see if there are any text files that are NOT hidden with a time stamp more then 5 hours from the current time.  If there is such a file in that directory to fire off an email using this code below that I got from another script.   I would appreciate any help..

Set objEmail = CreateObject("CDO.Message")
objEmail.From = ""
objEmail.To = ""
objEmail.Subject = "Files Have Not Uploaded" 
objEmail.Textbody = "There are files in Corp-file-VS2 that have not been uploaded."
objEmail.Configuration.Fields.Item _
    ("") = 2
objEmail.Configuration.Fields.Item _
    ("") = _
objEmail.Configuration.Fields.Item _
    ("") = 25
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 7 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros