I have seen other people posting around with this same request, but the solution the end up getting is never the one desired. So...
How does one go about setting a scheduled task's trigger to occur when a specific program either; a: is intentionally closed. Or b: Crashes/Hangs. Basically, at program end. All other solutions I've found were program/situation specific.
More specifically: Sometimes, one of my third party programs crashes due to a rapidly expanding database file. I'd like to set a task to delete the file upon that programs end. My best guess is XML code, but there are other options in the "create new trigger at event" section that lead me to believe there is a simpler way.
Tod