I have a program that I want to send cmd msg, initially sending a msg from CMD is msg * Hello Worlld, I have tried it the same way in C# but I have failed to get it right.
Process WindowsProcess = new Process();
ProcessStartInfo PSI = new ProcessStartInfo();
private void WindowsNotifier(string msg)
{
PSI.FileName = "cmd.exe";
PSI.Arguments = "/c msg * '"+msg+"'";
WindowsProcess.StartInfo = PSI;
WindowsProcess.Start();
}
Thank You