Link to home
Start Free TrialLog in
Avatar of NetRock6
NetRock6Flag for Canada

asked on

PS call executable Files in Order

Hi ...

I have a Folder with executable files, using powershell what is the best way to call each of them, wait making sure each is finshed before starting the next one....
Also, each exe files need to be called by the order: name ascending.

Thank you for your help...
ASKER CERTIFIED SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of NetRock6

ASKER

Thank You for your help.
On the PowerShell V.5, "Write-Debug -InputObject ....." is not working. It cannot find a match for 'InputObject'.
sorry I didn't test that change
Write-Debug -InputObject ('Starting {0}' -f $exe)
to
Write-Debug ('Starting {0}' -f $exe)
Thanks ....Keep Up the Good Job! ;)