Run a bat file when a program quits or starts

Catsrules

Distinguished
Dec 6, 2008
66
0
18,590
I have two computer on laptop and one desktop that I use to play games with. The thing that gets annoying is I need to keep copying my save games between the too computers. So I made a bat file that, copies my saved game data to a file server, and then a second bat file retrieves the save games from the server.
I would like to have these file run automatically.
I think I might just put the game execute path in my retrieve bat file. So that will take care of starting the bat file. But I don't know how to do one that will start up when I exit the game. So it will upload my new save games.
Any Ideas?