Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Batch file to search for "error" keyword in .log files of a folder  (Read 2954 times)

0 Members and 1 Guest are viewing this topic.

rajith.pn

    Topic Starter


    Newbie

    • Experience: Beginner
    • OS: Unknown
    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 those 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.



     

    Geek-9pm


      Mastermind
    • Geek After Dark
    • Thanked: 1026
      • Gekk9pm bnlog
    • Certifications: List
    • Computer: Specs
    • Experience: Expert
    • OS: Windows 10
    Re: Batch file to search for "error" keyword in .log files of a folder
    « Reply #1 on: December 13, 2010, 01:32:52 PM »
    We don't do homework.
    You need to learn he find command.
    In the search box on the upper right enter 'find' and get the link to articles that explain how it works.