public string ExecuteURL(string address)

{

    string result = "success";

    try

    {

        System.Diagnostics.ProcessStartInfo startInfo =

            new System.Diagnostics.ProcessStartInfo("IExplore.exe");

        startInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Minimized;

        startInfo.Arguments = address;

        System.Diagnostics.Process.Start(startInfo);

    }

    catch (Exception ex)

    {

        result = "error, " + ex.Message;

    }

}

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 Big Bear 的頭像
    Big Bear

    Programs Knowledge

    Big Bear 發表在 痞客邦 留言(0) 人氣()