I have a VBscript located on a remote computer. I want to setup an HTML page to call the specific VBscript and run locally from where it resides. I have the basic setup done but when trying to run the script via the HTML webpage it tries to run the script from the computer where the webpage is opened. I want the script to run on the remote computer where it resides. Here is what I have so far in my index.html
<html>
<head>
<title>ON call Script</title>
</head>
<script language="vbscript">
Public Sub RunScript()
Set objWSH = CreateObject("WScript.Shell")
strCMD = "cscript.exe c:\Scripts\AA.vbs"
objWSH.Run(strCMD)
End Sub
</script>
<body>
<br>
<INPUT TYPE=BUTTON OnClick="RunScript" VALUE="RUN">This is some text<br>
<br>
</body>
</html>
<html>
<head>
<title>ON call Script</title>
</head>
<script language="vbscript">
Public Sub RunScript()
Set objWSH = CreateObject("WScript.Shell")
strCMD = "cscript.exe c:\Scripts\AA.vbs"
objWSH.Run(strCMD)
End Sub
</script>
<body>
<br>
<INPUT TYPE=BUTTON OnClick="RunScript" VALUE="RUN">This is some text<br>
<br>
</body>
</html>