Problems with Wsh on my web page 
Author Message
 Problems with Wsh on my web page

Hi everyone,
Please Help me with that,
I'm testing this VBScript in the Microsoft Development environment from my
web page,

Dim WshShell
Set WSHShell = WScript.CreateObject("WScript.Shell")
WshShell.Run ("%windir%\notepad")

and obtain this error:
An exception of type 'Microsoft VBscript runtime error: Object required:
'Wscript" was not handled.

Can you help me?

Thanks a lot.

Victor



Mon, 27 Jan 2003 03:00:00 GMT  
 Problems with Wsh on my web page

http://support.microsoft.com/support/kb/articles/Q188/1/35.ASP

To enable Internet Explorer 4.0 or later to initialize and script WSH objects
from a Web page without warnings (not recommended), select a custom setting for
the security zone where the Web page resides, and enable the "Initialize and
script ActiveX controls not marked as safe" option.
IE, Tools, Options, Security Tab, "Custom Level" button.
--

link to FAQ for OE 5.5

Mark L. Ferguson    Please reply in Newsgroup
marfer's notes for OE 5.0 > http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm

Quote:

> Hi everyone,
> Please Help me with that,
> I'm testing this vbscript in the Microsoft Development environment from my
> web page,

> Dim WshShell
> Set WSHShell = WScript.CreateObject("WScript.Shell")
> WshShell.Run ("%windir%\notepad")

> and obtain this error:
> An exception of type 'Microsoft VBscript runtime error: Object required:
> 'Wscript" was not handled.

> Can you help me?

> Thanks a lot.

> Victor



Mon, 27 Jan 2003 03:00:00 GMT  
 Problems with Wsh on my web page
"When in Rome, do as the Romans do..."

And when in IE use CreateObject(...), not WScript.CreateObject(...).

--
Michael Harris
Microsoft MVP - Scripting


http://support.microsoft.com/support/kb/articles/Q188/1/35.ASP

To enable Internet Explorer 4.0 or later to initialize and script WSH objects
from a Web page without warnings (not recommended), select a custom setting for
the security zone where the Web page resides, and enable the "Initialize and
script ActiveX controls not marked as safe" option.
IE, Tools, Options, Security Tab, "Custom Level" button.
--

link to FAQ for OE 5.5

Mark L. Ferguson    Please reply in Newsgroup
marfer's notes for OE 5.0 > http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm

Quote:

> Hi everyone,
> Please Help me with that,
> I'm testing this vbscript in the Microsoft Development environment from my
> web page,

> Dim WshShell
> Set WSHShell = WScript.CreateObject("WScript.Shell")
> WshShell.Run ("%windir%\notepad")

> and obtain this error:
> An exception of type 'Microsoft VBscript runtime error: Object required:
> 'Wscript" was not handled.

> Can you help me?

> Thanks a lot.

> Victor



Mon, 27 Jan 2003 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. WSH Script to save a web page as a text file - dialogue box problem

2. pass a form from web page to web page

3. Passing variables from one web page to another web page using JavaScript

4. pass a form from web page to web page

5. Creating Web Pages with WSH

6. web pages using wsh

7. WSH in a web page??

8. WSH/vbScript for SMTP and to get a web page (with a password)

9. WSH as a Web page script

10. WSH Version form Web page

11. How to read a HTML web page from JScript/WSH

12. Problem with VbScript in Web Page

 

 
Powered by phpBB® Forum Software