07-24-2023, 11:53 AM
Like the title suggests, is there an equivalent to `Process.Start` (allows you run another application or batch file) that I can await?
I'm playing with a small console app and this seemed like the perfect place to be using async and await but I can't find any documentation for this scenario.
What I'm thinking is something along these lines:
void async RunCommand()
{
var result = await Process.RunAsync("command to run");
}
I'm playing with a small console app and this seemed like the perfect place to be using async and await but I can't find any documentation for this scenario.
What I'm thinking is something along these lines:
void async RunCommand()
{
var result = await Process.RunAsync("command to run");
}