不是很清楚你的问题,如果是调用CMD,可以参考下面
http://blog.csdn.net/zhzuo/archive/2004/03/21/22024.aspx

解决方案 »

  1.   

    System.Diagnostics.Process.Start("xxx.exe");

    System.Diagnostics.Process.Start("xxx.exe","参数");
      

  2.   


    System.Diagnostics.Process sqlProcess = new System.Diagnostics.Process();
                    sqlProcess.StartInfo.FileName = "cmd.exe";
                    sqlProcess.StartInfo.Arguments = string.Format(@" {0} {1}", p0,p1);
                    //sqlProcess.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
                    sqlProcess.Start();
      

  3.   

                System.Diagnostics.ProcessStartInfo start = new System.Diagnostics.ProcessStartInfo("date.exe");
                start.CreateNoWindow = false;
                System.Diagnostics.Process p = System.Diagnostics.Process.Start(start);            p.WaitForExit();
                p.Close();            
      

  4.   

    System.Diagnostics.Process.Start("cmd.exe");