Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need some help with WSH
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00565026
Message ID:
00565028
Views:
24
>
>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.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform