|I'm in need of a batch file that will do the following:|
File name I_ABCDE.XYZ
I_ is a constant
ABCDE are variable
XYZ corresponds to the numeric value of the date (001=Jan 01, etc).
Files are a single line, variable length.
If the file contains the text "Duplicate Dispatch" in anywhere in the file, rename the file to "K_ABCDE.XYZ" and move it to C:\NEWDIR
If it does not contain the text "Duplicate Dispatch" move it to C:\NEWDIR without renaming.
Any help will be appreciated.