Link to home
Start Free TrialLog in
Avatar of KRS12
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.
Avatar of Lee W, MVP
Lee W, MVP
Flag of United States of America image

How about an example?
What kind of event that you want to trigger the batch file execution? Different events get different ways.
SOLUTION
Avatar of Qlemo
Qlemo
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of KRS12
KRS12

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.
Avatar of KRS12

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
Avatar of KRS12

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|SUCCESSAUDIT|FAILUREAUDIT}]|[/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.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial