I can get the output of the process with the following codes
var p = new Process
{
StartInfo =
{
UseShellExecute = false,
RedirectStandardOutput = true,
CreateNoWindow = true,
FileName = "cmd",
Arguments = "list id"
}
};
p.Start();
var _Data = await p.StandardOutput.ReadToEndAsync();
await p.WaitForExitAsync();
File.WriteAllText("asd.txt", _Data);
In the output I have information like this
Name Id Version
----------------------------
WinRAR RARLab.WinRAR 6.01.0
The question is how can I get the 3 fields of name, id and version?