C#中打开IE并关掉之
来源: BlogBus 原始链接: http://fafeng.blogbus.com:80/logs/2006/04/2204237.html 存档链接: https://web.archive.org/web/20061105160952id_/http://fafeng.blogbus.com:80/logs/2006/04/2204237.html
阿里的家 Brief is beautiful. I love to be loved by you. Show me how can I show you,that I'm blinded by your light. When you touch me, I can touch you to find out the dream is true. << 我是佛前的一只鱼 | 返回首页 | P2P之UDP穿透NAT的原理与实现(附源代码) >> 2006-04-05 C#中打开IE并关掉之 TAG: C#中打开IE并关掉之 using System.Diagnostics; ProcessStartInfo startInfo = new ProcessStartInfo("IExplore.exe"); startInfo.Arguments = " www.microsoft.com "; Process process1=new Process (); process1.StartInfo =startInfo; process1.Start(); System.Diagnostics.Process[] processList = System.Diagnostics.Process.GetProcessesByName("IEXPLORE"); foreach (System.Diagnostics.Process process in processList) { System.Threading .Thread .Sleep (10000); process.Kill (); } xiaoshancom 发表于 17:49:11 | 引用 (Trackback 0) | 编辑 评论 发表评论 用户名: E-mail: 地址: