Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script to add a Search Provider to IE registry 1

Status
Not open for further replies.

oguh

Technical User
Aug 15, 2010
2
GB
Hi All,
Bit of a newbie here, I'm trying to write a very simple script to add a search provider to IE via the registry. I'm using notepad and creating a .bat file. Here's what I have so far:

Code:
Windows Registry Editor Version 5.00
reg add "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes"
"DisplayName"="My Search Provider"
"URL"="[URL unfurl="true"]http://mysearchprovider.com/={searchTerms}"[/URL]
"OSDFileURL"="[URL unfurl="true"]http://mysearchprovider.com"[/URL]
"FaviconURL"="[URL unfurl="true"]http://mysearchprovider.com/favicon.ico"[/URL]
pause

The error states that the attributes are not recognized.
I was hoping for some guidance on this, thanks in advance.
Cheers.
 
he error states that the attributes are not recognized.

As what, or by what?


And why not use a .reg file and import it?

Using "Reg Add" in cmd or bat scripts has some annoying "quirks".

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top