net send 系统命令的使用!(首先应该打开Message服务)方法一: string str;str="Mr Zhang: " + MyText.Text;System.Diagnostics.Process.Start("CMD.exe","/c net send 172.16.3.60 "+ str); 方法二: string str;str="Mr Zhang: " + MyText.Text; System.Diagnostics.ProcessStartInfostartInfo = new System.Diagnostics.ProcessStartInfo();System.Diagnostics.Process p;startInfo.FileName = "c:\\windows\\system32\\net.exe";startInfo.Arguments = "send 172.16.3.60 " + str;startInfo.WindowStyle =System.Diagnostics.ProcessWindowStyle.Hidden;p = System.Diagnostics.Process.Start(startInfo);p.WaitForExit(); 相关文章: