Triggering a Batch File to run from Event Viewer / POP-up window
Posted on 2005-05-04
I am in need of a DOS batch file that is able to detect a refresh message sent by another PC to a specific PC. The refresh message is basically a window that pop's up and states that data has been refreshed. It is also noted that when this refresh window pop's up, it is displayed in the Event Viewer under the Application Section.
I need a batch file that picks up this entry from the Event Viewer and proceeds to trigger another batch file to run. How can I know that a new entry in the Event Viewer has appeared or a pop-up window has been displayed on my PC?
I don't mind using VB Script, but can VB Script call a MS-DOS Batch File. If it can, what is the code for it.