Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need some help with WSH
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00565026
Message ID:
00565028
Vues:
25
>
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform