widnows2008下asp.net服务器上打开一个exe程序,比如记事本。
在服务器任务管理器上,看到了进程打开了,但是就是不执行,也看不到程序界面。查了很多资料,能想到的权限全加上了。还是不行。代码:
Process.Start(@"c:\windows\system32\notepad.exe");ASP.NETwindow 2008打开一个exe程序

解决方案 »

  1.   

    Process.Start(@"c:\windows\system32\notepad.exe"); 修改下这个路径看看。将notepad.exe放在你项目中的bin文件夹下试试。
      

  2.   

    不要放到system32这个文件夹下,看看行不行。
      

  3.   

            private static void Run(string proFilePath, string argument)
            {
                System.Diagnostics.Process pro = new System.Diagnostics.Process();
                pro.StartInfo.FileName = proFilePath;
                pro.StartInfo.CreateNoWindow = true;
                pro.StartInfo.Arguments = argument;
                pro.Start();            while (!pro.HasExited)
                {
                    pro.WaitForExit();
                }
                pro.Close();
            }
                Run(AppDomain.CurrentDomain.BaseDirectory.TrimEnd('\\') + @"\FlashPrinter\FlashPrinter.exe",string.Format("{0} -o {1}", @"E:\云智能第三脑综合平台\云智能第三脑综合平台-新版\WebManage发布\upload\05\13\06\26\000513062614220962841.doc", @"E:\云智能第三脑综合平台\云智能第三脑综合平台-新版\WebManage发布\upload\05\13\06\26\000513062614220962841.swf"));
      

  4.   

    我是想执行FlashPrinter程序,把word文档转化成flash文件,在页面上预览
      

  5.   

    Process.Start(@"c:\windows\system32\notepad.exe"); -->你先告诉我 你这里给的什么权限?