I want to call a vbscript file from html. I am using the below code. I get the error 'ActiveX Component doesn't create an object 'WScript.Shell' Please help me with this HTML: <HTML> <HEAD><TITLE>Run CR Scripts</TITLE> <SCRIPT LANGUAGE="VBScript"> Sub Button1_OnClick Dim WSHell Set WSHell = Server.CreateObject("Wscript.Shell") env = "PROD_57" WSHell.Run """\\k:\data\CR.vbs """ & env set WSHell = Nothing End Sub </SCRIPT> </HEAD> <BODY> <H3>Run CR Scripts</H3><HR> <FORM><INPUT NAME="Button1" TYPE="BUTTON" VALUE="Click Here"></FORM> </BODY> </HTML>
It's probably because of Internet Explorer's sceurity settings, try lowering the security from Internet Options.