logparser batch file help
Posted on 2007-03-18
I can run the below fine directly from the command line.. HOwever, if I put the same line in a batch file it gives me an error.. (Error: Syntax Error: <term2>: no valid LIKE mask)
LogParser.exe -i:textline "select text from \windows\tasks\schedLgU.txt where text like '%System%'"
How do I get this to work?? Also I want to inlude a date like statement but it will be a variable, so how do I handle that. I dont use batch files much but for what I need here it seems like easier than a script. If I could get it to work that is!!
Thanks for any help