需要配置权限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
http://www.csdn.net/Develop/read_article.asp?id=8907
调试欢乐多
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)
行 73:
行 74: }
行 75: Response.Write(Proc.StartTime);
行 76: Proc.WaitForExit(3000);
行 77:
notepad在后台运行, 服务器进程列表中可以找到它, 但它无法显示出来WaitForExit是等待进程退出,
你看不到界面, 也就没法直接退出Proc.HasExited==false肯定一直是成立的
notepad在后台运行, 服务器进程列表中可以找到它, 但它无法显示出来WaitForExit是等待进程退出,
你看不到界面, 也就没法直接退出Proc.HasExited==false肯定一直是成立的