I want to run 3 shell commands in parallel and get the output/result. Any idea how I can implement this?
I tried already "Parallel.for..." but I cannot catch the output/result. Her is the example:
Parallel.For(0, 3, number => {
arg1 = array3[number];
process.StartInfo.Arguments = arg1 + arg2;
process.Start();
output[number] = process.StandardOutput.ReadToEnd();
process.WaitForExit();
MessageBox.Show(output[number]);
});