需要配置权限http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/q288/3/67.asp&NoWebContent=1
http://www.csdn.net/Develop/read_article.asp?id=8907

解决方案 »

  1.   

    Dim p As Process = new Process()
                p.StartInfo.FileName= "netstat.exe"
                p.StartInfo.Arguments="-n"
                p.StartInfo.UseShellExecute = False
                p.StartInfo.RedirectStandardOutput = True
                p.Start()
                Dim str As String = p.StandardOutput.ReadToEnd()
        p.WaitForExit()
        Response.Write(str)
      

  2.   

    异常详细信息: System.ComponentModel.Win32Exception: 拒绝访问。源错误: 
    行 73: 
    行 74:  }
    行 75:     Response.Write(Proc.StartTime);
    行 76:              Proc.WaitForExit(3000);
    行 77:
      

  3.   

    用web应用程序不能让服务端弹出记事本的界面, 
    notepad在后台运行, 服务器进程列表中可以找到它, 但它无法显示出来WaitForExit是等待进程退出, 
    你看不到界面, 也就没法直接退出Proc.HasExited==false肯定一直是成立的
      

  4.   

    用web应用程序不能让服务端弹出记事本的界面, 
    notepad在后台运行, 服务器进程列表中可以找到它, 但它无法显示出来WaitForExit是等待进程退出, 
    你看不到界面, 也就没法直接退出Proc.HasExited==false肯定一直是成立的
      

  5.   

    那要是打开一个exe文件呢?是不是在web应用程序也没办法实现啊?