|I need a batch file that can sort a folder for me.|
I need it to look into a folder, search each text file, if it contains a "string", then move it into an accepted folder, if not, move it into a rejected folder.
Any ideas how to tackle this?
I have used something as follows for finding text before.
find /c "string" file
if %errorlevel% equ 1 goto
I'm sure I could manipulate the search, butI don't know how to make it search each file in a folder, and those file names change on a daily basis.