Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WSH in web pages
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00317011
Message ID:
00317278
Views:
10
>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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform