Hi I'm trying to run a batch file that sits on my webserver (to run locally)
I get the following message Activex can't create object "WSHshell"
the code that I'm using is
<html>
<head>
<script language="VBScript">
Sub RunProgram
dim ws
Set Ws = CreateObject("Wscript.Shell")
Ws.Run chr(34) & "C:\inetpub\test.bat" & Chr(34), 0
Set Ws = Nothing
End Sub
</script>
</head>
<body>
<button onclick="RunProgram">Run Program</button> <p>
</body>
</html>
This ran on my local pc but gets the error from the server
Can anybody help pls
Chris
I get the following message Activex can't create object "WSHshell"
the code that I'm using is
<html>
<head>
<script language="VBScript">
Sub RunProgram
dim ws
Set Ws = CreateObject("Wscript.Shell")
Ws.Run chr(34) & "C:\inetpub\test.bat" & Chr(34), 0
Set Ws = Nothing
End Sub
</script>
</head>
<body>
<button onclick="RunProgram">Run Program</button> <p>
</body>
</html>
This ran on my local pc but gets the error from the server
Can anybody help pls
Chris