Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Setting "homepage" via batch file...

12 Feb 2014   #1

Windows 8 64bit Professional
Setting "homepage" via batch file...

So, I work in a school district tech department. I'm trying to make my coworkers jobs easier when we image a computer. It would be nice to press one button, and have ALL 3 browsers we install, have our link set to the default.

javascript:(function(){ window.location.href='';})();
I tried this, and it didn't work. I've spent an hour looking for the proper command to do this, and nothing.

This is what I need it to work with;

REG ADD "HKCU\Software\Microsoft\Internet Explorer\Main" /V "Start Page" /D "" /F

@Echo off
taskkill /im firefox.exe* /f

cd /D "%APPDATA%\Mozilla\Firefox\Profiles"
cd *.default
set ffile=%cd%
echo user_pref("browser.startup.homepage", "");>>"%ffile%\prefs.js"
set ffile=
cd %windir%

Hope I can get help here!

- Thomas

My System SpecsSystem Spec


 Setting "homepage" via batch file...

Thread Tools

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 03:46 PM.
Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33