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;

    }

}

創作者介紹
創作者 Programs Knowledge 的頭像
Big Bear

Programs Knowledge

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