Batch file for findstr
Posted on 2005-05-10
I am no amateur in batch scripting...With help about findstr from the command line, i was able to make the findstr work for me in the commandline.
My command is: findstr /r /i /m "AddImgIfNextIsSame" e:\dap\dapcore\ho\v97\mstrres\ddtlib\*.* >> H:\dap\kk2.txt
and it works fine.
Two things I am struggling with are:
1) How to add another directory to this findstr command and make it work. I tried:
findstr /r /i /m "AddImgIfNextIsSame" /d:e:\dap\dapcore\ho\v97\mstrres\ddtlib\*.*;e:\dap\dapcore\ho\v10\mstrres\ddtlib\*.* >> H:\dap\kk2.txt
but it gives cannot open the directory error.
2) How to make this work from batch file. I put the exact same command in a notepad and renamed it as .bat file, but is not working.