Yes I have tried: java -cp classes\ com.gorans.SleepServer -Sqwerty > xxx.console 2>&1 &
Or (which is in above example): Start-Process ... -NoNewWindow
The problem is not the background, It’s that: sub processesdies then terminating the parent process
I still want my processes to continue running after the user logs out (or terminates the shell/terminal)
AFAIK that does not work on Windows. Either you configure your system to run your command line as the local “SYSTEM” or another dedicated local or domain account by using the task scheduler or you create a service to run in the background.
Running something in a Windows machine without beeing logged on needs the permission for the account to log on as batch job.