在C#中运行DOS命令

System.Diagnostics.Process.Start("CMD.exe","/c   net   send   192.168.3.6   你今天过的好吗?");   
  System.Diagnostics.Process.Start("cmd.exe",   "/c   foo.exe   -arg   "   +   "|   bar.exe");   
posted @ 2009-09-21 18:11  zzh  阅读(236)  评论(0编辑  收藏  举报