现在我用一个webservice启动本机的一个exe程序.为什么启动不了呢?
我在webservice中用的是如下方法.
System.Diagnostics.ProcessStartInfo pi=new System.Diagnostics.ProcessStartInfo(exePath + "\\WindowsApplication1.exe",null);
pi.RedirectStandardOutput=true;
pi.UseShellExecute=false;System.Diagnostics.Process P=new System.Diagnostics.Process();
P.StartInfo=pi;
P.Start();
string output =P.StandardOutput.ReadToEnd();
P.WaitForExit(10000);
P.Close();
我在webservice所在电脑里看到进程是启动了.但是没执行exe文件里的动作.我就是测试了一下,exe里就只简单的创建了一个文件.看到进程出现了一下,但没创建文件.
请问为什么没执行创建文件这个动作呢?是权限的问题吗?如果是那要怎么设置权限呢?
我在webservice中用的是如下方法.
System.Diagnostics.ProcessStartInfo pi=new System.Diagnostics.ProcessStartInfo(exePath + "\\WindowsApplication1.exe",null);
pi.RedirectStandardOutput=true;
pi.UseShellExecute=false;System.Diagnostics.Process P=new System.Diagnostics.Process();
P.StartInfo=pi;
P.Start();
string output =P.StandardOutput.ReadToEnd();
P.WaitForExit(10000);
P.Close();
我在webservice所在电脑里看到进程是启动了.但是没执行exe文件里的动作.我就是测试了一下,exe里就只简单的创建了一个文件.看到进程出现了一下,但没创建文件.
请问为什么没执行创建文件这个动作呢?是权限的问题吗?如果是那要怎么设置权限呢?
是否你的exe???