log file/directory monitor - script? tools?
Anyone suggest a tool with which this objective can be accomplished?
I also tried to accomplish the same by:
for /f "eol=; tokens=*" %%x in (C:\temp\*.log) do if "%%x" CONTAINS "error" LogMonAction.exe
Basically I tried to monitor all log files in C:\temp directory, if any log file created/updated since last night, execute "LogMonAction.exe" or another log file.
Problem with above script is, there's no such comparison operator "CONTAINS", and you cant do this on a DIRECTORY. And let aside the additional requirement - only files updated/created since last night.
Thansk
Reference:
(a) If statement: If statement (http://www.robvanderwoude.com/if.html)
(b) Textlog Monitor: Textlog Monitor (http://www.sharewareconnection.com/text-log-monitor.htm )

