Batch file to search for string in most recent file -


I have a lot of log files which need to be searched for some strings and wondering if I would like this job Can I create a batch file for myself, for me? I need to do this to know the location of the most recent log in a fixed directory and search the string in that file.

I have received the following code on this website which works very well to open the recent logs but unfortunately I do not know enough about batch programming to modify the code to string The search is performed and the line is displayed.

  for / f "usebackq delims =" %% i (`dir / b / od`) what @ call" %% i "& amp; Goto: AOF  

Any help would be greatly appreciated.

What is this doing this

  = "post-text" itemprop = "text"> 

ODi) what search finderistisstring %% i

Dir / b / od

Which list files (/ b = not just name and no other information and / odd reverse date order


Comments