Hey Guys!
I have a problem that I’m been working on for about 3 weeks now.
I created a “Launchpad” with some GUI and stuff. It basically give the user a couple of choices and after that it launched a .bat file wich lanches an application.
My problem is that the user cannot quit the launchpad because then the newly started application quits too.
That is because the application becomes an child process(?).
How do I start a new “master” process instead?
This is my code so far (not all of it of course, just the relevant stuff):
$SelectedItemFromList = “Carl”
start-job -scriptblock {cmd /C “set USERNAME=$args” ‘&&’ “C:\MADEUPNAME\run.bat”} -ArgumentList @($SelectedItemFromList )
I have to change the USERNAME verible in CMD before launching the .bat file.
This is the only way so far I managed to launch the program and the user can continue working in the GUI.
Any ideas?