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.
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
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" *
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 ...