|Currently, I have a folder structure |
C:\LOGS\(DEV|PROD)\(2009|2010)\(SUCCESS|FAIL). (subfolders can be prod or dev, 2009 or 2010 or any other year, success or failure)
And I have log files at C:\LOGS with the naming structure which includes the environment, date as below:
The success and failure message is denoted by a string inside the log files.
I need to look in the log file name as well as inside the log file and move the file to a corresponding location using a batch file. Any help would be appreciated.