Saturday, 28 February 2015

Batch file for changing the homepage for ie and firefox


Here is a batch file, which let you to change the Homepage for Internet Explorer and Mozilla Firefox:


@Echo off

taskkill /im firefox.exe* /f

ping 1.1.1.1 -n 1 -w 3000 > nul

cd /D "%APPDATA%\Mozilla\Firefox\Pro
files"
cd *.default
set ffile=%cd%
echo user_pref("browser.startup.homepage", "http://www.google.com");>>"%ffile%\prefs.js"
set ffile=
cd %windir%

start firefox.exe

@echo off

taskkill /im iexplore.exe* /f

REG ADD "HKCU\SOFTWARE\MICROSOFT\INTERNET EXPLORER\MAIN" /V "START PAGE" /D "http://www.google.com/" /F

start firefox.exe

No comments: