Batch file for searching al files in a folder

December 30, 2010 at 21:22:10
Specs: Windows Xp
Hi
I need a batch file which should be kept on desktop and on executing the batch file it should search all the files of some other folder in the D: drive for the "error" and "2010-12-30" key words. and it should copy all the lines which consisting of both "error" and "2010-12-30" keywords to the new file.
Please give me the solution for the above requirement. Its very urgent. Tanks in advance.
Ask me if you didnot understand the requirement.



See More: Batch file for searching al files in a folder

Report •

#1
December 30, 2010 at 22:13:49
FINDSTR "error" "P:\a\t\h\*.*"| FIND "2010-12-30">>newfile

Can I put a question here?


Report •
Related Solutions


Ask Question