Write a .bat file to clear Mozilla Firefox cache, cookies and history

If You want to clear cache, cookies and history from Firefox web browser  can be used Shift+ Ctrl+ Delete Keys together. Once you press the short cut keys you can see list of items that you want to be cleared. From that window you can select the items and press Clear Now button to clear the selected data.

Normally Firefox stores cookies, cache and history in two places. The first is per-user AppData directory C:\Users\\AppData\Local\Mozilla\Firefox\Profiles and the second place is roaming profile data directory C:\Users\\AppData\Roaming\Mozilla\Firefox\Profiles. To get rid of all the private data, delete the local data directory and delete all SQLite databases from the roaming data directory.

Copy below commands to Notepad and save the file as .bat extension. If you want to Run this file you can double click it. if u want to run and clear all history form fire fox within given time  period you can write a program for this.

@echo off

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

Just create this Bat file. Will write a program to clear  cookies, cache and history by given time period Join next article.

3 අදහස් හා මතවාද:

Copyright © 2013 kotuwegedara.com