清晰的Firefox cookies和缓存蝙蝠脚本 [英] Bat script for clear firefox cookies and cache
问题描述
我想清楚了我的Mozilla Firefox浏览器的cookies时,我的浏览器仍在运行。我尝试以下code,但关闭浏览器时它只是工作。
I want to clear my Mozilla Firefox cookies when my browser is still running. I tried following code, but it is working only when browser is closed.
关闭@echo
设置DATADIR = C:\\用户\\%USERNAME%\\ AppData的\\本地\\ Mozilla的\\火狐\\ Profiles文件
DEL / Q / S / F%DATADIR%
RD / S / Q%DATADIR%
针对/ D %%倍In(C:\\用户\\%USERNAME%\\应用程序数据\\漫游\\ Mozilla的\\火狐\\ Profiles文件\\ *)做DEL / Q / S / F %%点¯x\\ * sqlite的
有什么办法来清除时,浏览器运行的cookie?
Is there any way to clear cookies when browser is running?
推荐答案
消防狐狸正在使用您正试图删除这些文件,所以它不会让你删除它们。唯一的办法就是关闭浏览器。你可以使用它来关闭Firefox。
Fire fox is using the files that you are trying to remove so it will not allow you to remove them. the only way is to close the browser. You could use this to close firefox.
taskkill /im "firefox.exe"
因此,这将是这样的:
So it would be like:
@echo off
taskkill /im "firefox.exe"
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
这篇关于清晰的Firefox cookies和缓存蝙蝠脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!