萬盛學電腦網

 萬盛學電腦網 >> 網絡編程 >> 編程語言綜合 >> PowerShell中編程清空IE緩存方法

PowerShell中編程清空IE緩存方法

   這篇文章主要介紹了PowerShell中編程清空IE緩存方法,本文代碼同樣適用於批處理程序,需要的朋友可以參考下

  使用RunDll32.exe 來運行Internet選項的對應功能:

  Temporary Internet Files (Internet臨時文件)

  RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8

  Cookies

  RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2

  History (歷史記錄)

  RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1

  Form Data (表單數據)

  RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16

  Passwords (密碼)

  RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32

  Delete All (全部刪除)

  RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255

  Delete All - "Also delete files and settings stored by add-ons"

  RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351

copyright © 萬盛學電腦網 all rights reserved