
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