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