Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 8583

running three find commands in parallel

$
0
0

I am just new to powershell, but have been using dos for years.

I have a .bat file that executes three commands in sequence:

find "aaa" combined0.txt >combined1.txt
find "bbb" combined0.txt >combined2.txt
find "ccc" combined0.txt >combined3.txt

Is there a way in powershell to run these three commands in parallel and only move on to the following command once all three have completed?   If yes, an example would be very much appreciated.

Thanks, Rob

 

 


Viewing all articles
Browse latest Browse all 8583

Trending Articles