Process process = new Process(); process.StartInfo.FileName = "cmd.exe"; process.StartInfo.CreateNoWindow = true; process.StartInfo.RedirectStandardInput = true; process.StartInfo.RedirectStandardOutput = true; process.StartInfo.UseShellExecute = false; process.Start(); process.StandardInput.WriteLine("msg * /server:192.168.1.14 hello goodevening"); process.StandardInput.Flush(); process.StandardInput.Close(); process.WaitForExit(); Console.WriteLine(process.StandardOutput.ReadToEnd()); Console.ReadKey();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)