>Hi
>I don’t know if IE has a favorite object, I know it has a history object.
>
>Usually the favorite sites are held in a folder in your system folder.
>
>I used the FileSystemobject object to retrieve the favorite site info
>
>
>Public oFileObject,oFile,lcFile
>oFileObject=createobject("scripting.filesystemobject")
>oFile=oFileObject.getfolder("c:\windows\favorites")
>For each lcFile in oFile.files
> If UPPER(ALLTRIM(justext(lcFile.name)))="URL"
> This.additem(lcFile.name)
> Endif
>Endfor
>
>Hope this helps
The correct way to find the favorites folder is to ask the operating system; the easy way to do this is with the Wscript.Shell SpecialFolders collection:
oShell = CREATEOBJ('Wscript.Shell')
? oShell.SpecialFolders('Favorites')