Skip to content

Instantly share code, notes, and snippets.

@stackedsax
Created January 28, 2012 04:39
Show Gist options
  • Save stackedsax/1692653 to your computer and use it in GitHub Desktop.
Save stackedsax/1692653 to your computer and use it in GitHub Desktop.
Batch file for optimizing the sqlite files in your Firefox profiles
:: This assumes all your various firefox profiles are within your %USERPROFILE% directory
for /f "delims==" %%a in (' dir "%USERPROFILE%\places.sqlite" /s/b ') do echo delete from moz_places where hidden=1 and url like 'http%%';|"sqlite3.exe" "%%a"
for /f "delims==" %%a in (' dir "%USERPROFILE%\*.sqlite" /s/b ') do echo vacuum;|"sqlite3.exe" "%%a"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment