Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WSH in web pages
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00317011
Message ID:
00317278
Vues:
9
>Can you invoke the Windows Script Host for a local machine from a web page script? I've tried to use the JScript syntax
>
>oWSH = new ActiveXObject( "Wscript.Shell" );
>
>but this has not been successful. Am I missing something or barking up a wrong tree?

You have to set browser security to allow using the WSH with IE. Yes you can call COM objects easily enough but obviously you can't do this in a Web page without restriction.

Think of this scenario: You download a page and you do Delete("\winnt\system32\*.*"). Makes for a very unhappy user, wouldn't you say?

You *can* allow WSH to run via security settings, but be VERY, VERY careful with this.
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform