Batch file to search for error in all files

December 13, 2010 at 02:04:47
Specs: Windows XP
Hi All,

Please give me sollution for the below requirement. I will be very happy if i get the sollution. My manager has assigned this work. Requirement is below
" Write a windows Xp batch file to search all .log files in a folder which were modified from specifc date and time till today's date and time and find the keyword "error" and copy the line containing "error" in all log files and paste it into new file."

I am really dying to obtain sollution for it. I tried for loop but also am not able to find sollution . Please anyone help me giving correct sollution. It is really critical issue for me, since i am in deadline to finish thi work.

Thanks a lot in advance.



See More: Batch file to search for error in all files

Report •


#1
December 13, 2010 at 02:44:04
'date math' in batch has come up a couple times a week for years. It's never a happy ending.


=====================================
Life is too important to be taken seriously.

M2


Report •

#2
December 13, 2010 at 02:54:59
So i dont have any solution?

Report •

#3
December 13, 2010 at 04:35:27
Some helpers here can probably do it with VBscript. Not me, but I'm learning.


=====================================
Life is too important to be taken seriously.

M2


Report •

Related Solutions


Ask Question