On Linux, I could do this just doing:
myprogram &
However on Windows... If I start a command like:
start /B myprogram.exe
It runs in the background, but if I close my command prompt, the myprogram.exe is not killed. How to make it be killed automatically when the command prompt is closed?
Related question: