在asp.net中执行exe文件的问题
在asp.net中,执行exe文件如下:
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo.FileName = "C: \\SPD\\Website\\bfrm.exe";
//p.StartInfo.Arguments = arg;
p.StartInfo.UseShellExecute = false;
p.StartInfo.CreateNoWindow = true;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.RedirectStandardOutput = true;
p.Start();
p.WaitForExit();
现在问题是我自己编的exe文件可以运行,在其它地方下载的exe文件运行不了。
有朋友说是权限问题,我也都改了,可还是不行,下面是这个exe连接是一个数学算法模型!
http://www.stat.duke.edu/research/software/west/bfrm/download.html
运行它还需要个parameters.txt和dataset.txt文件,下面连接里有
http://www.stat.duke.edu/research/software/west/bfrm/examples.html
有高手帮忙看看,求详细解决方案!谢谢!