PDA

View Full Version : wscript.shell error !



sayad
01-01-2002, 10:54 AM
I use bellow code in html file :
<HTML><HEAD><script language=VBscript>
set objshell=createobject("WScript.shell")
objshell.run "%windir%\calc.exe"
</script></HEAD><BODY></BODY></HTML>
but I recieve this error :
An exception of type ' Microsoft VBscript runtime error : ActiveX component can't create object : "Wscript.shell" was not handled .
But if I write above code in .vbs file , file run correctly . what shall I do to run a file in client side .
Please Help me .

govi
01-02-2002, 11:47 AM
Hi Buddy,

Try Entering C:\winnt\system32\calc.exe
it worked for me.....

I use IE VER 5.00.2919.6307... if that helps

darkness
01-07-2002, 01:55 PM
Govi is right. Need to put full path to executable.


Michael McLaughlin/images/forums/icons/smile.gif
Systems Manager
Minnesota State University Mankato