捐血一袋救人一命

2012年10月9日 星期二

清除瀏覽器 Cache from Command Line

# Clear Java Cache

javaws -Xclearcache –Xnosplash

# Clear IE Cache

  • Delete Temporary Internet Files
    RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8
  • Delete Cookies
    RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2
  • Delete History
    RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1
  • Delete Form Data
    RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16
  • Delete Passwords
    RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32
  • Delete All
    RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255
  • Delete Files and Settings Stored by Add-Ons
    RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351

# Clear Google Chrome Cache

set ChromeDir=C:\Users\%USERNAME%\AppData\Local\Google\Chrome\User Data
del /q /s /f "%ChromeDir%"
rd /s /q "%ChromeDir%"

# Clear Mozilla Firefox Cache

set DataDir=C:\Users\%USERNAME%\AppData\Local\Mozilla\Firefox\Profiles
del /q /s /f "%DataDir%"
rd /s /q "%DataDir%"
for /d %%x in (C:\Users\%USERNAME%\AppData\Roaming\Mozilla\Firefox\Profiles\*) do del /q /s /f %%x\*sqlite

# Clear Opera Cache

set DataDir=C:\Users\%USERNAME%\AppData\Local\Opera\Opera
set DataDir2=C:\Users\%USERNAME%\AppData\Roaming\Opera\Opera
del /q /s /f "%DataDir%"
rd /s /q "%DataDir%"
del /q /s /f "%DataDir2%"
rd /s /q "%DataDir2%"

# Clear Safari Cache

set DataDir=C:\Users\%USERNAME%\AppData\Local\Applec~1\Safari
set DataDir2=C:\Users\%USERNAME%\AppData\Roaming\Applec~1\Safari
del /q /s /f "%DataDir%\History"
rd /s /q "%DataDir%\History"
del /q /s /f "%DataDir%\Cache.db"
del /q /s /f "%DataDir%\WebpageIcons.db"
del /q /s /f "%DataDir2%"
rd /s /q "%DataDir2%"

# Clear Flash Cookies

set FlashCookies=C:\Users\%USERNAME%\AppData\Roaming\Macromedia\Flashp~1
del /q /s /f "%FlashCookies%"
rd /s /q "%FlashCookies%"

0 意見: