本帖最后由 winslow 于 2009-10-05 18:47:52 编辑

解决方案 »

  1.   

    楼主能不能把参数写入文件,然后把文件名传进去,用程序读取文件内容再处理呢?
    或者
    System.Diagnostics.Process.Start(@"H:\我的文档\abc\efg.exe",@"<a.txt")
    这样?
      

  2.   

    Process process = new Process();
    process.StartInfo.FileName = strPath;
    process.StartInfo.Arguments = "";
    process.Start();
    是否数据问题,通过Arguments 试试
      

  3.   

    为了说明不是我数据的问题,我提供以下代码 Process process = new Process();
                process.StartInfo.FileName = @"H:\我的文档\xxx.exe";
                process.StartInfo.Arguments = "x".PadRight(2050,'|');
                process.Start();当这个数字在2040时是可以正确传送的,也就是说传送2041个字符时是正确的,但在2041以上时就出现拒绝访问的提示。
      

  4.   

    System.Diagnostics.Process process = new Process();
                process.StartInfo.FileName = @"c:\WindowsFormsApplication17.exe";
                process.StartInfo.Arguments = "x".PadRight(2050, '|');
                process.StartInfo.UseShellExecute = false;
                process.Start();加一句 process.StartInfo.UseShellExecute = false;
      

  5.   

    process.StartInfo.UseShellExecute = false; 
    学习了,我也因为这个问题搞了好久。