10.0.2 and search providers

Assaf
Posts:7
Joined:Thu Mar 22, 2007 2:24 pm
Location:Maryland, USA
Re: 10.0.2 and search providers

Post by Assaf » Fri Aug 31, 2012 10:01 am

char0n wrote:

Code: Select all

@echo off

cd "%APPDATA%\Mozilla\Firefox\Profiles"
if exist "fixed_search_json.txt" goto :exit
for /F "usebackq" %%i in (`dir /a:d /b`) do @cd %%i
del search.json /s /q
cd "%APPDATA%\Mozilla\Firefox\Profiles"
echo "done" > fixed_search_json.txt
:exit
exit

This code will work if as long as there is only a single profile, since the FOR loop ends up in the last folder returned by DIR, and that's the only folder in which the DEL command is executed.

I'd recommend this slight adjustment"

Code: Select all

@echo off

cd "%APPDATA%\Mozilla\Firefox\Profiles"
if exist "fixed_search_json.txt" goto :exit
for /F "usebackq" %%i in (`dir /a:d /b`) do @del "%%i\search.json" /s /q
cd "%APPDATA%\Mozilla\Firefox\Profiles"
echo "done" > fixed_search_json.txt
:exit
exit
It will delete search.json in EACH profile folder

Post Reply