我在程序A中想调用程序B (也是用C#编写的)
它老是提示说 异常 System.ArgumentException 在程序B.exe中发生
请问是怎么回事啊?ProcessStartInfo wzq=new ProcessStartInfo();
wzq.FileName="B.exe";
//wzq.Arguments=   是不是要对他进行赋值啊?谢谢!

解决方案 »

  1.   

    调用没有问题。 肯定在 b.exe 里面有错误。 单独执行 b.exe 可不可以?
      
      

  2.   

    单独运行肯定没问题啊
    也是个winform程序,要什么参数啊
      

  3.   

    请看看这两个重载的 Startpublic static System.Diagnostics.Process.Start(string fileName, string arguments)
    public static System.Diagnostics.Process.Start(string fileName)如果不需要等待返回,就这样调用好了。
      
      

  4.   

    顺便再问问 如果b.exe中还带有自己做的dll,那是不是也要一起加载,如何加呢?