I have two executable files that I would like to run together:
main.exe
& side.exe
The main.exe
file is proprietary source code that I cannot modify, but it is utilizing a modification to compliment it, side.exe
, that I can modify. When main.exe
is killed, side.exe
remains running. I would like to create a method for linking the two executable files such that running main.exe
also runs side.exe
and closing main.exe
closes side.exe
.
Currently, I've tried using a simple batch script to run the two executable files. This works to start both executable files, but it doesn't have the latter behavior of closing both files on exiting main.exe
:
script.bat:
@echo off
c:\path\to\first\exe\main.exe
c:\path\to\second\exe\side.exe
How can I link the two within batch, or side.exe whose source is in cpp?