code for bat file delete cookies
Can anyone tell me the code for a bat file that when clicked will have the same effect my going tools/options/privacy/show cookies/remove all I want to be able to remove all cookies without having top do it manually and maybe put the bat fil on a schedules.
I know how to make the file in notepad but do not know the code. Thanks
כל התגובות (10)
Hi
We do not provide developer level help here, but I recommend you ask your question at Stack Overflow or reading the docs at Mozilla Developer Network.
I noticed that your copy of Firefox s out of date. I strongly recommend you update your copy or Firefox to make sure that you have the latest security and stability fixes, as we as new features that have been released. You can read more about how to update here.
I hope this helps, but if not, please come back here and we can look into a different solution for you.
thanks. I am late updating ff as i do not want to have to undo the changes they often make. have ff as i want it
Firefox stores cookies in a database file named cookies.sqlite. I do not think a BAT file could do anything except delete the entire file. Such a file removal should occur ONLY when Firefox has been fully shut down; running it on an arbitrary schedule when Firefox is still running seems likely to cause crashes, or at least chaos with open sites.
If you want to remove unneeded cookies promptly, consider using an add-on. For example, you could take a look at this one:
https://addons.mozilla.org/firefox/addon/self-destructing-cookies/
jscher2000 said
Firefox stores cookies in a database file named cookies.sqlite. I do not think a BAT file could do anything except delete the entire file. Such a file removal should occur ONLY when Firefox has been fully shut down; running it on an arbitrary schedule when Firefox is still running seems likely to cause crashes, or at least chaos with open sites. If you want to remove unneeded cookies promptly, consider using an add-on. For example, you could take a look at this one: https://addons.mozilla.org/firefox/addon/self-destructing-cookies/i have that addon it only works when the site tab is closed. I often delete cookies manually with no crash. i want something like winpatrol that deletes them to a schedule but do not want win patrol
There's a difference between using built-in features or interfaces of Firefox to cleanly remove cookies, and removing the entire database file. I still don't recommend deleting the file on a schedule.
Maybe there's another extension that will help?
Also, a bit faster than using the Options page would be the "Clear Recent History" dialog (History menu or Ctrl+Shift+Delete). Just make sure not to clear anything you don't want to clear -- expand the Details panel to uncheck data you want to preserve.
jscher2000 said
There's a difference between using built-in features or interfaces of Firefox to cleanly remove cookies, and removing the entire database file. I still don't recommend deleting the file on a schedule. Maybe there's another extension that will help? Also, a bit faster than using the Options page would be the "Clear Recent History" dialog (History menu or Ctrl+Shift+Delete). Just make sure not to clear anything you don't want to clear -- expand the Details panel to uncheck data you want to preserve.
thanks is there any quicker way to get to clear recent history?
FIREFOXED said
is there any quicker way to get to clear recent history?
Not that I'm aware of. Maybe using an add-on button?
I suppose you do realise you may use Firefox in a Private Browsing mode. Also you may set Firefox to do effectively the same thing automatically or to remove cookies at close down. See
- Private Browsing - Use Firefox without saving history
- Delete browsing, search and download history on Firefox_how-do-i-make-firefox-clear-my-history-automatically
- Enhanced Tracking Protection in Firefox for desktop
Unfortunately right now with Fx44 may not be the best time to try that, Fx44 does have known bugs relating to clearing information at closedown.
FIREFOXED said
Winpatrol deletes cookies on a schedules and no crash. I don't know how that works though
If I were developing such a thing, I would get the code to open a SQLite database and clear a database table and build that into the program.
Tried Google?
https://www.google.com/search?q=sqlite+command+line+batch+file