Maxx
Tue Mar 11 05:53:06 CDT 2008
Tom that script works beautifully - thansk for your help.
Maxx
"Tom Lavedas" <tglbatch@cox.net> wrote in message
news:fff722f5-959b-40eb-a0b2-bfa9b7e7f8b7@m34g2000hsc.googlegroups.com...
> On Mar 10, 8:53 am, Corey Thomas - MCSE/MCSA/MCDBA
> <CoreyThomasMCSEMCSAMC...@discussions.microsoft.com> wrote:
>> Hey Maxx,
>>
>> There isn't an "addFavorite" method in the InternetExplorer.Application
>> model. However, you can create a shortcut URL fairly easily.
>>
>> The WshShell object has a CreateShortcut method that you can use to
>> create a
>> nice .lnk file.
>>
>> -Corey
>>
>> "Maxx" wrote:
>>
>> > This script starts IE and opens a web site.
>>
>> > Dim IE1
>> > Set IE1 = WScript.CreateObject("InternetExplorer.Application")
>> > IE1.Visible = True
>> > IE1.Navigate
>> > "
http://www.microsoft.com/technet/scriptcenter/resources/qanda/hsgarch..."
>>
>> > How can I add this web site to my favorites?
>
> That reminds me (adapted from WSH documentation example) ...
>
> sTitle = "Microsoft Web Site"
> with CreateObject("WScript.Shell")
> sFavorites = .SpecialFolders("Favorites")
> with .CreateShortcut(sFavorites & "\" & sTitle & ".url")
> .TargetPath = "
http://www.microsoft.com"
> .Save
> end with ' shortcut
> end with ' shell
>
> Tom Lavedas
> ===========
>
http://members.cox.net/tglbatch/wsh/