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 Code:
<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>

Last edited by shabbir; 22Feb2008 at 08:24.. Reason: HTML Code Block