Hello,
Is there a Visual Basic script that can be written to export Internet Explorer Favorites to a bookmark.htm file?
Thanks.
Technology Tips and News
Hello,
Is there a Visual Basic script that can be written to export Internet Explorer Favorites to a bookmark.htm file?
Thanks.
Here's one that exports the favorites to a bookmark.htm file:
Const FAVOURITES = &H6&
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(FAVOURITES)
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objBookMark = objFSO.CreateTextFile(".\bookmark.htm", 2)
objBookMark.WriteLine "<TITLE>Bookmarks</TITLE>"
objBookMark.WriteLine "<H1>Bookmarks</H1>"
objBookMark.WriteLine "<DL><p>"
For Each objItem in objFolder.Items
If objItem.IsLink Then
Set objLink = objItem.GetLink
objBookMark.Write "<A HREF=""" & objLink.Target & """>" & objItem.Name & "</A></br>"
End If
Next
objBookMark.WriteLine "</DL></p>"
objBookMark.Close
Regards,
Salvador Manaois III
MCSE MCSA MCTS MCITP C|EH CIWA
----------------------------------------------------------------------------
Bytes & Badz: http://badzmanaois.blogspot.com
My Passion: http://www.flickr.com/photos/badzmanaois
My Scripting Blog: http://sgwindowsgroup.org/blogs/badz
No problem. =)
Regards,
Salvador
Hi
I know this is old, but this is exactly what I'm after.
The code that Salvador provided works perfectly... except it only exports .LNKs / URLs in the Favorites root.
Is anyone able to provide a little more scripting information to create and preserve the .LNKs / URLs in subfolders please?
Many thanks, Phil
Hello
Excellent script but i also need to be able to export the Favourites bar, can that be added to the script as well, i know absolutly nothing about scripting so hope you can help.
Regards Mick