powershell - How to launch multiple instances of cmd prompt -
i launch multiple instances of program called biospwd.exe.
i use program typing following cmd prompt:
biospwd.exe someinputfile.txt anotherinputfile.txt i following:
for ($i = 0; $i -lt 4; $i++) { biospwd.exe someinputfile$i.txt anotherinputfile$i.txt } to run multiple instances of program someinputfile1.txt etc. launches program within powershell ise. i'd launch multiple instances of cmd biospwd.exe program running in each one.
something this?
1..4 | % { cmd /c "biospwd.exe someinputfile$($_).txt anotherinputfile$($_).txt" } edit: think above running 1 instance @ time. try start-process instead:
1..4 | % { start-process -filepath "cmd" -argumentlist "/c biospwd.exe someinputfile$($_).txt anotherinputfile$($_).txt" }
Comments
Post a Comment