M626
Programmer
- Mar 13, 2002
- 299
I am new to HTML and I would like to launch a batch file on a machine where this web page will reside. I would like to created checkboxed for all the different batch files and once you check one of the boxes, it assignes the file name to the vbscript file name. So when you hit process, it knows which batch to run. here is the script i would be using
Need variable to be assigned to the "myBatFile.bat" part of the vbscript.
<%@ LANGUAGE="VBSCRIPT" %>
<%
Set WSHShell = CreateObject("Wscript.Shell")
WSHShell.Run ("c:\myBatfile.bat")
%>
<html>
<title>Sample</title>
<body>
Blah Blah
</body>
</html>
Need variable to be assigned to the "myBatFile.bat" part of the vbscript.
<%@ LANGUAGE="VBSCRIPT" %>
<%
Set WSHShell = CreateObject("Wscript.Shell")
WSHShell.Run ("c:\myBatfile.bat")
%>
<html>
<title>Sample</title>
<body>
Blah Blah
</body>
</html>