Friday, April 8, 2022

[SOLVED] On Windows how do I run a program in the background of a shell, with the ability to close the shell while leaving the program running?

Issue

I am using Windows terminal to open up an android emulator. (emulator -avd <avd_name>).

But when I close the terminal it kills the emulator too. The solution seems to be straight forward in linux. But I need it for Windows.


Solution

START `my command`

Works on batch files too.(Doc here)



Answered By - Nir Duan
Answer Checked By - David Goodson (WPSolving Volunteer)