>
>oShell = CREATEOBJECT( "Wscript.Shell" )
>oShell.Run( "c:\test.htm#q1" )
>
>
>This blows up, it doesn't no how to handle the file name with the "#q1" at the end. Does anyone know how I can navigate to a specific anchor, using WSH? Or if it is possible? I don't want to use an IE object if I can avoid it. This is for display only.
>Thanks,
>jfh
John,
I don't think you can. The association is probably getting hosed because of the extra characters.
I don't understand why you wouldn't want to use the IE object model. If the association to an HTM file is IE, it is going to be launched anyway. Is the reason because users may have other browsers as the default browser and you can't be sure if they even have an object model?
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao