KRS12
asked on
Call a Batch File based on Event
Call a Batch File based on Event - is this possible in XP., not having much luck. I know it is available in W7 & up. Any help would be great.
How about an example?
What kind of event that you want to trigger the batch file execution? Different events get different ways.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
A good example is that an executable crashes and I have to close it out and restart it, then the issue is resolved. Since this is a training enviroment, I would like to be able to set a trigger to restart on it's own.
ASKER
I followed your link, but I don't see a command in the eventtriggers to restart the executable if it fails on an application hang 1002
ASKER
eventtriggers[.exe] /create [/s 10.10.1.* [/u domain\user [/p mypassword]]] /tr AppHang [/l [any2.exe] [SYSTEM] [SECURITY]
["DNS Server"] [LOG] [DirectoryLogName] [*] ] {[/1002]|[/t {ERROR|INFORMATION|WARNING |SUCCESSAU DIT|FAILUR EAUDIT}]|[ /so
Source]} [/d Application Hang] /tk AppHang [/ru {[mynet\]user | "System"} [/rp Password]]
I am trying to create and event that after eid 1002 will restart my exe. I am lost after the eid sections.
["DNS Server"] [LOG] [DirectoryLogName] [*] ] {[/1002]|[/t {ERROR|INFORMATION|WARNING
Source]} [/d Application Hang] /tk AppHang [/ru {[mynet\]user | "System"} [/rp Password]]
I am trying to create and event that after eid 1002 will restart my exe. I am lost after the eid sections.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.