Ok so here it is...
Please don't laugh ... but basically I want the above to poll a log file "dnetc.txt" and search for the string "error". If it finds it, it starts command "dnetc.com -restart". And it goes back to polling teh logfile. Now... the logfile is auto cleared by dnetc.com so it won't find the same 'error' string again.Code::TOP ping 127.0.0.1 -n 20 findstr /m "error" C:\CSW\RC572\dnetc.txt if %errorlevel%==0 ( C:\CSW\RC572\dnetc.com -restart ) GOTO TOP
Now.. I needed a delay built into this... so my LAME way of doing it was to insert that Ping -n 20 command. Any more clever ways?
Thanks
Bookmarks