hong34210 2015-03-26 11:21 采纳率: 97%
浏览 1779
已采纳

asp.net的两个问题, Process每次都打开新网页

后台执行cmd。exe,来调用beyond Compare,但是每次都会打开新网页
还有想在后台将生成的report。htm打开,用frame,结果只得到2个白框,

  Process p = new Process();
        p.StartInfo.FileName = @"cmd.exe";
        p.StartInfo.UseShellExecute = false;
        p.StartInfo.RedirectStandardInput = true;
        p.StartInfo.RedirectStandardOutput = true;
        p.StartInfo.RedirectStandardError = true;
        p.StartInfo.CreateNoWindow = true;
        p.Start();
        string str = "D:\\BCompare\\BCompare.exe @D:\\parser\\BCconsle.txt D:\\parser\\o.txt D:\\parser\\s.txt D:\\parser\\report.html ";
        p.StandardInput.WriteLine(str);
        p.StandardInput.WriteLine();
        p.StandardInput.AutoFlush = true;
        p.StandardInput.WriteLine("exit");
        p.StandardOutput.ReadToEnd();
        p.Close();
        Response.Write("<a href=' D:\\parser\\report.html'></a>");
       // Response.Write("<frameset cols='25%,50%,25%'><frame src='D:\\parser\\report.html' /></frameset>");
  • 写回答

3条回答 默认 最新

  • threenewbee 2015-03-26 11:33
    关注

    那是因为你的服务器和客户机对于调试来讲是一台电脑。你真的发布下就知道了,根本没用的程序。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 TLS1.2协议通信解密
  • ¥40 图书信息管理系统程序编写
  • ¥20 Qcustomplot缩小曲线形状问题
  • ¥15 企业资源规划ERP沙盘模拟
  • ¥15 树莓派控制机械臂传输命令报错,显示摄像头不存在
  • ¥15 前端echarts坐标轴问题
  • ¥15 ad5933的I2C
  • ¥15 请问RTX4060的笔记本电脑可以训练yolov5模型吗?
  • ¥15 数学建模求思路及代码
  • ¥50 silvaco GaN HEMT有栅极场板的击穿电压仿真问题