Hi All. After tinkering with various scripts out on the internet I can't find a workable solution to my problem.
I have a directory named d:\data\
I'm need to search for 2 specific files in d:\data\ let's say a.log and b.log
I want to know if a.log or b.log exists and if either is newer than Jan 1, 2011.
I'm going to take some action if one or both of those files exist with the date newer than the one I mentioned
I am looking for the file on many machines, various OS (2003, 2008, 2008 R2).
I'd like to keep it a batch script if possible. I'm okay with vbscript but this code is just a piece of more scripting so I'd like to keep it all batch, not have just one piece in VB. Thanks!