Windows batch/script code to conditionally process based on date value in text file

Posted by CarolinaJay65 on Stack Overflow See other posts from Stack Overflow or by CarolinaJay65
Published on 2012-09-12T03:24:25Z Indexed on 2012/09/12 3:38 UTC
Read the original article Hit count: 159

Filed under:
|

I am using Windows XP. The code can be used in a batch file or vbs script. I intend to use Windows scheduler to run the program.

I need code to read a date from a text file (could be the only line in the text file or the date could be included in the filename, I control the process that generates the file) The code would then need to evaluate the text file date against the current date to confirm that the text file date is from the prior month.

I'm starting to build a process to be able to run 1st-of-the-month jobs once the monthly data has been refreshed. I'm new to building this kind of process using batch/script files.

Thanks for your time

© Stack Overflow or respective owner

Related posts about vbscript

Related posts about batch-file