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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Import Browser Favorites List? 1

Status
Not open for further replies.

keepsafe

Programmer
Sep 22, 2009
14
US
Hello,

Someone ask me if there anyway to import their browser favorites list and save it to a database.

Thanks
John
 
IE supports the exporting of the Favorites list and Firefox supports the exporting of the Bookmarks to a file.

Once that file is created the information in it can the be parsed out manually or programatically to extract the pertinent information.

Once that information is available, it can be put into a data table which may or may not be contained in a database.

Good Luck,
JRB-Bldr
 
Thank you for your respond. Do anyone know if there is any API, ActiveX etc that will automate the exporting of the bookmarks / Favorites?

John
 
John,

Internet Explorer has an API, in the shape of the Microsoft Web Browser ActiveX control. Or, you can just instantiate IE as an Automation server:

Code:
loIE = CREATEOBJECT("InternetExplorer.application")

I don't know if there is any specific way of accessing the bookmarks, but you should be able to dig around with the help of Intellisense.

That said, I can't see that it's worth the effort. IE favourites are all stored as shortcuts in a specific directory (usually under Documents and Settings), so it should be easy to get them using ADIR().

As for Firefox, it stores its bookmarks in a single HTML file. As JRB-Bldr suggested, you should be able to parse the file (it's just text) and extract the relevant information.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro tips, advice, training, consultancy
Custom software for your business
 
Thanks for all of your advice. Now I have something to work with.
John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top