N
no stress
I'm trying to run a program from the script below. For some reason the
script wants the full path to the executable. Since it will be running on a
CD, I don't know what the drive letter is. Can someone help with the path?
Again it work when I put the full path...runCmd('c:/../addprinter.exe');
The error is 'The system cannot find the file specified".
I did not include all of the header stuff.
<script language="javascript" type="text/javascript">
function runCmd(cmd)
{
var shell=new ActiveXObject("WScript.shell");
shell.run(cmd,1);
}
</script>
<input type="Button" value="abc" onclick="runCmd('addprinter.exe')">
script wants the full path to the executable. Since it will be running on a
CD, I don't know what the drive letter is. Can someone help with the path?
Again it work when I put the full path...runCmd('c:/../addprinter.exe');
The error is 'The system cannot find the file specified".
I did not include all of the header stuff.
<script language="javascript" type="text/javascript">
function runCmd(cmd)
{
var shell=new ActiveXObject("WScript.shell");
shell.run(cmd,1);
}
</script>
<input type="Button" value="abc" onclick="runCmd('addprinter.exe')">