Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.
So, I thought of executing the same statement from a C# program and copied this code from Internet.
C:\WINDOWS\System32\MSG [windowsusername] "Hello"
When I run the above code, unfortunately nothing happens. Does anyone have any idea what is going wrong here?
System.Diagnostics.Process process = new System.Diagnostics.Process(); System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo(); startInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden; startInfo.FileName = "cmd.exe"; startInfo.Arguments = @" /C MSG Amit.Jain Hello"; process.StartInfo = startInfo; process.Start(); process.WaitForExit(100); process.Close(); process.Dispose();
|Google Directions API to Map URL -C#?||3||37|
How would you rewrite the string because it is too long? strSQL = Constants.txtUpdateStopVoi
|Release Dynamically Allocated Memory in C#||3||38|
|Iteration Help (Asp.net VB)||5||24|