Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I set the homepage in ie from a DOS batch script

Is there a way to set the Internet Explorer homepage from a dos batch script.

I'm using: Windows 2008 Server IE 7

like image 317
Ben Avatar asked Oct 03 '12 13:10

Ben


1 Answers

the value for the home page is stored in the registry.

if all you want to do is set the home page, then a .REG file would be easier:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"Start Page"="http://www.stackoverflow.com/"

if it's part of an installation, then you an use the REG command to access the registry:

REG ADD "HKCU\Software\Microsoft\Internet Explorer\Main" /V "Start Page" /D "http://www.stackoverflow.com/" /F
like image 82
SeanC Avatar answered Nov 08 '22 02:11

SeanC