I have a problem with this code below this text,
more particularly with this row
Code:
prog.StandardInput.WriteLine(@"systeminfo | findstr / B / C:"Host Name" / C:"OS Version"");
How to write the line or define it correctly, that will work with this program?

Code:
 ProcessStartInfo status = new ProcessStartInfo("cmd");
 status.UseShellExecute = false;
 status.RedirectStandardOutput = true;
 status.CreateNoWindow = true;
 status.RedirectStandardInput = rue;
 var prog = Process.Start(status);
    
 prog.StandardInput.WriteLine(@"systeminfo | findstr / B / C:"Host Name"  / C:"OS Version"");
 string statustext = prog.StandardOutput.ReadToEnd()
 richTextBoxStatus.Text = statustext;