G
Guest
Is it possible to import favorites from IE and create a data base?
Actually, there's no HTML to parse with IE bookmarks, John: the bookmark is
like an INI file. For instance, here's the content of my shortcut to MSDN
Advanced Search:
[DEFAULT]
BASEURL=http://search.microsoft.com/search/search.aspx?view=msdn&st=a&c=0&s=1
[InternetShortcut]
URL=http://search.microsoft.com/search/search.aspx?view=msdn&st=a&c=0&s=1
Modified=C0AF2FD4C037C4012E
I haven't tested, but you should be able to Dir to retrieve the bookmarks
(the file extension is .url), and then use GetPrivateProfileString to read
it.
John Nurick said:That's much too simple, Doug! I was looking at the HTML (or near-HTML)
file you get when you export favourites from IE.
Actually, there's no HTML to parse with IE bookmarks, John: the bookmark is
like an INI file. For instance, here's the content of my shortcut to MSDN
Advanced Search:
[DEFAULT]
BASEURL=http://search.microsoft.com/search/search.aspx?view=msdn&st=a&c=0&s=1
[InternetShortcut]
URL=http://search.microsoft.com/search/search.aspx?view=msdn&st=a&c=0&s=1
Modified=C0AF2FD4C037C4012E
I haven't tested, but you should be able to Dir to retrieve the bookmarks
(the file extension is .url), and then use GetPrivateProfileString to read
it.