怎么用asp.net来调用呢?或是做一个shell?

解决方案 »

  1.   

    shell或者利用进程调用Process.Start具体请查阅msdn
      

  2.   

    Process.Start我怎么带两个参数呢?
      

  3.   

    给你参赞考下
        System.Diagnostics.ProcessStartInfo
        startInfo = new System.Diagnostics.ProcessStartInfo();
        System.Diagnostics.Process p;
        
        startInfo.FileName = "d:\\winnt\\system32\\net.exe";
        startInfo.Arguments = "send 127.0.0.1 The Message";
        startInfo.WindowStyle =
        System.Diagnostics.ProcessWindowStyle.Hidden;
        
        p = System.Diagnostics.Process.Start(startInfo);
        p.WaitForExit();
      

  4.   

    参数是根据你所调用的 exe来的,比如调用net send 就如楼上的参数格式
      

  5.   

    我使用楼上的调用net send 好用,可是我调用我自己的程序怎么就不好用呢?
    void wmain(int argc, wchar_t * argv[])