我用C#写了个exe,但是这个EXE必须接受另外一个程序传第的参数才能运行

解决方案 »

  1.   

    我用C#写了个exe,但是这个EXE必须接受另外一个程序传第的参数才能运行 请问在哪里写接收传递值的代码啊?
      

  2.   

    Calling Proc code:
    Process.Start("calledProcName","parameters_in_string_type");
      

  3.   

    Called Proc Code:
    通过Main()传入的args[i] 是Calling Proc 传给你的第i个参数
      

  4.   

    在main后加参数
    static void main(object args[])
    {}然后调用
    your.exe arg1,arg2...