addhaloka
Gold Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору rehash.bat (для портабла в стиле PortableAppS): Код: @echo off title Оптимизация/сжатие баз данных Portable Firefox :try cls tasklist | find /i "firefox.exe" >nul if not errorlevel 1 (echo. && echo. && echo. && echo Вы должны закрыть Firefox для выполнения оптимизации^! && >nul ping -n 2 127.0.0.1 && goto try) echo. echo. echo. echo Пожалуйста подождите, идет оптимизация ... for %%i in (*.sqlite) do @echo VACUUM; | sqlite3 %%i del /f /q adblockplus\*backup*.ini rem это добавил после того, как впервые увидел) del /f /q adblockplus\patterns-*.ini rem del /f /q autoproxy\*backup*.ini del /f /q bookmarkbackups\*.json del /f /q flashgot.lo* rmdir /s /q Cache if exist TestPilotErrorLog.log del /f /q TestPilotErrorLog.log if exist ..\plugins\sumatrapdfcache rmdir /s /q ..\plugins\sumatrapdfcache del /f /q custombuttons\backup\buttonsoverlay.xul*.bak del /f /q custombuttons\backup\buttonsoverlay.xul*.sbk del /f /q custombuttons\backup\buttonsoverlay.xul*.bak if exist thumbnails\*.png del /f /s /q thumbnails\*.png if exist minidumps rmdir /s /q minidumps if exist safebrowsing rmdir /s /q safebrowsing if exist healthreport rmdir /s /q healthreport if exist healthreport.sqlite del /f /q healthreport.sqlite if exist Telemetry.ShutdownTime.txt del /f /q Telemetry.ShutdownTime.txt | nightly-optimize (для портабл FF в линухе): Код: #!/bin/sh cd /home/elch/opt/nightly/profile rm -fR bookmarkbackups/* rm -fR adblockplus/patterns-backu*.ini # это добавил после того, как впервые увидел) rm -fR adblockplus/patterns-*.ini rm -fR minidumps rm -fR mozilla-media-cache rm -fR safebrowsing rm -f flashgot.lo* for i in *.sqlite; do echo "VACUUM;" | sqlite3 $i ; done |
| Всего записей: 7432 | Зарегистр. 13-11-2010 | Отправлено: 13:55 13-08-2013 | Исправлено: addhaloka, 13:57 13-08-2013 |
|