Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

WshShell Question

0 views
Skip to first unread message

Stalin Torres

unread,
Jul 23, 1999, 3:00:00 AM7/23/99
to
hi, every body

any one knows why this code is慨t functioning?


<Script language="vbscript">
function ejecutar()
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run("notepad")
end function
</script>

when i try it appears this message:
* the Activex componet can愒 create the object "Wscript.shell" *

if any one knows the answer PLEASE help me.

LiL Endian

unread,
Jul 23, 1999, 3:00:00 AM7/23/99
to
Hi,

You need to let us know what host you are running
this under.

If you try and run it under WSH, then you are missing
some XML tags.

<job id="my job blah blah">
</job>

If you are running under IE, then you probably should run
it server side. Client side might be a problem.

HTH,
Mark
Stalin Torres wrote in message ...
>hi, every body
>
>any one knows why this code is´nt functioning?


>
>
><Script language="vbscript">
> function ejecutar()
> Set WshShell = CreateObject("WScript.Shell")
> WshShell.Run("notepad")
> end function
></script>
>
>when i try it appears this message:

>* the Activex componet can´t create the object "Wscript.shell" *

Michael Harris

unread,
Jul 24, 1999, 3:00:00 AM7/24/99
to
In an IE client, you'll get this if WSH isn't installed on the client or the
browser security setting for "...ActiveX Controls not marked safe.." is set to
Disable (as opposed to Enable or Prompt)...

--
Michael Harris

Stalin Torres <stal...@hotmail.com> wrote in message
news:e6lOLhS1#GA....@cppssbbsa02.microsoft.com...
| hi, every body
|
| any one knows why this code is慨t functioning?


|
|
| <Script language="vbscript">
| function ejecutar()
| Set WshShell = CreateObject("WScript.Shell")
| WshShell.Run("notepad")
| end function
| </script>
|
| when i try it appears this message:

| * the Activex componet can愒 create the object "Wscript.shell" *

Kerry Jamieson

unread,
Jul 26, 1999, 3:00:00 AM7/26/99
to
Or possibly (as I had a similiar problem) the WScript.Shell object has not
been registered in HKEY_CLASSES_ROOT.

To see if this is the case use regedit to see if there is a "WScript.Shell"
subkey immeadiately off HKCR. If not you will need to use regsvr32.exe to
export the appropriate dll or ocx. (In my case it was sccrun.dll but I am
not sure what it would be for this particular object - as you can tell I am
new to this stuff!!)

Kerry

Stalin Torres wrote in message ...

0 new messages