Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IE Object
Message
From
09/02/2000 11:36:16
 
 
To
09/02/2000 08:37:17
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00329319
Message ID:
00329465
Views:
25
>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')
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform