http://expert.csdn.net/Expert/topic/2317/2317048.xml?temp=.4848139
实例:
System.Diagnostics.Process.Start("net.exe","send 192.168.0.66 hello");

解决方案 »

  1.   

    net send 172.18.2.1 hello
      

  2.   

    先using System.Diagnostics;
    Process msgProcess = new Process();
    msgProcess.StartInfo.FileName = @"net.exe";
    msgProcess.StartInfo.CreateNoWindow = true;//new line added
    msgProcess.StartInfo.Arguments = " send 172.18.2.1 你好";
    msgProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
    msgProcess.StartInfo.UseShellExecute = false;
    msgProcess.StartInfo.RedirectStandardOutput = true;
    msgProcess.Start();
    msgProcess.WaitForExit();
    string output = msgProcess.StandardOutput.ReadToEnd();
      

  3.   

    net send 我知道的。那样我的ip对方就知道了,因为想给对方惊喜, 能不能把自己ip隐藏呢?