通过asp.net执行服务器上的EXE程序。为何只显示进程。不显示窗体?
gnhao 2007-10-15 12:36:13 aspnet用户的权限给成最高了都。还是不行
下边两种方法都试了。
Process process = new Process();
process.StartInfo.FileName = "c:\\windows\\notepad.exe";
process.Start();
[DllImport("shell32.dll")]
private static extern IntPtr ShellExecute(IntPtr hwnd, string lpOperation, string lpFile, string lpParameters, string lpDirectory, Int32 nShowCmd);
在VS2005中开发时调用成功了。打开了窗体。但在IIS中只见进程,不见窗体。。