I wrote a .bat script that will search a folder for files with file names that were modified on todays date and then output the results to a .txt file. I want to change it to only return files that were not modified on todays date. I tried to use /V in the second FIND statements, but it appears to apply the /V to both FIND statements.
for /f "tokens=2,3,4 delims=/ " %%a in ('DATE /T') do set date=%%a/%%b/%%c
dir "c:\temp" /s /ta /a-d | find "%test_script.txt% %script_test.txt%" | find "%date%" > c:\temp\list.txt
This is my /V attempt that does not do what I want.
for /f "tokens=2,3,4 delims=/ " %%a in ('DATE /T') do set date=%%a/%%b/%%c
dir "c:\temp" /s /ta /a-d | find "%test_script.txt% %script_test.txt%" | find "%date%" /V > c:\temp\list.txt
If you know how to modify this script to meet my needs let me know.
Thank you