Keep package running while child processes are executing

Ask your Windows PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Post Reply
Heli0s
Posts: 1
Meble kuchenne na zamówienie - na wymiar - Wrocław
Joined: Wed Apr 22, 2020 8:11 am

Keep package running while child processes are executing

Post by Heli0s »

I have an executable package that accepts a number of command line parameters, performs and execution, and displays a Message Box in the end. Currently, when I run the package, the commands are executed correctly, however, the executable exits immediately while the executions continue in the background. Is there a way to have the executable keep running while the jobs are being executed?

jvierra
Posts: 14368
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: Keep package running while child processes are executing

Post by jvierra »

You will have to run in a wait loop and check the jobs for completion.

Post Reply