Run .bat when a program is closed by a Task Scheduler

Miguel Casado 0 Reputation points
2024-02-14T11:06:17.9933333+00:00

Hi Team, First of all, sorry for my English. I want run a .bat when a program called xxx.exe is closed by user, by task scheduler.I've been looking for a way for a while, but without success. I'm using Windows 11 22H2 Thanks for all.

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
11,147 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. MotoX80 35,626 Reputation points
    2024-02-14T12:48:37.95+00:00

    This site explains how to do that.

    https://woshub.com/run-script-when-app-opens-closes/

    0 comments No comments

  2. Miguel Casado 0 Reputation points
    2024-02-14T19:01:35.1666667+00:00

    Thanks for all.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.