admin管理员组

文章数量:1534194

using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new Class1());
            int t = 0;
            while (true)
            {
                t=t+1;

                if (t >3)
                {
                    System.Environment.Exit(System.Environment.ExitCode); //使用强制结束的话
                }
                System.Threading.Thread.Sleep(500);
                System.Diagnostics.Process.Start("iexplore.exe", "http://www.baidu");   //调用IE
                
            }
        }
    }
}

本文标签: 打开网页浏览器链接