mrl72
3 discussion posts
I am trying to set up a trigger on a windows batch (.bat) window so that when it's closed it triggers a function.
Triggers work fine for when the .bat file is run but don't work at all for when the window closes. I've tried everything from process ended to window destroyed but to no avail.
To replicate, simply create a test.bat with "pause" as the only command. Run it and create at trigger that references the window. Then close the window and see that nothing happens.
Any help appreciated.
Nov 11, 2019 (modified Nov 11, 2019)
•
#1
Process Ended seems to be working for me. Could you attach a screenshot of the Trigger rule you've got setup so far?