按下IE的網際網路選項,瀏覽歷程紀錄的設定按下去

檢查儲存的畫面是否有較新的版本裡面有這四個

每次啟動 Internet Explorer

2

每次造訪網頁時

3

自動

4

0

如果要把它改成每次造訪網頁時都會去抓最新的網頁的話

 using Microsoft.Win32;

string myKey = "";

 

myKey = @"SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings";

 

RegistryKey RegKey = Registry.CurrentUser.OpenSubKey(myKey, true);

 

 if (RegKey.GetValue("SyncMode5").ToString() != "3")

 {

    RegKey.SetValue("SyncMode5", 3); 

    MessageBox.Show("更改完成,將重開IE");

 

    foreach (Process ProcItem in Process.GetProcessesByName("iexplore"))

      {

          //把開著的IE全都殺了...喔..不..是關了

          ProcItem.Kill();

      } 

 

 } 

 

arrow
arrow
    全站熱搜

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