PaulDotCom mailing list archives

Command Line Kung Fu to remove private data from browser


From: nbaronian at gmail.com (Nick Baronian)
Date: Fri, 3 Apr 2009 23:38:49 -0400

As horrible looking as this is and I'm sure there is an easier way to do
this, you can toss this into a batch file, execute it and it will delete the
FF sqlite db's for all users.  New sqlite files are recreated upon next FF
start.

@echo off
FOR /F "tokens=*" %%L IN ('dir /b ^"C:\Documents and Settings^"') DO echo
%%L >> names.txt
FOR /F "tokens=1" %%M IN (names.txt) DO FOR /F "tokens=*" %%N IN ('dir /b
"C:\Documents and Settings\%%M\Application
Data\Mozilla\Firefox\Profiles\*.default"') DO del /q /f "C:\Documents and
Settings\%%M\Application Data\Mozilla\Firefox\Profiles\%%N\*.sqlite"
del names.txt

If you only want to delete your user's history put this in a .bat
FOR /F "tokens=*" %%B IN ('dir /b ^"%USERPROFILE%\Application
Data\Mozilla\Firefox\Profiles^"') DO del /q /f
"%USERPROFILE%\Application Data\Mozilla\Firefox\Profiles\%%B\*.sqlite"

Or just delete all the sqlite files via the del cmd for that user.....

-nick

On Fri, Apr 3, 2009 at 7:40 PM, Adrian Crenshaw <irongeek at irongeek.com>wrote:

Anyone got some good Command Line Kung Fu to remove private data from a
browser?

I found this online for IE:     InetCpl.cpl,ClearMyTracksByProcess 4351

But for Firefox on Windows I'm drawing a blank.

Thanks,
Adrian

_______________________________________________
Pauldotcom mailing list
Pauldotcom at mail.pauldotcom.com
http://mail.pauldotcom.com/cgi-bin/mailman/listinfo/pauldotcom
Main Web Site: http://pauldotcom.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pauldotcom.com/pipermail/pauldotcom/attachments/20090403/48b24319/attachment.htm 


Current thread: