jason_kelly
09-29-2011, 04:32 PM
Hello,
I need your help,
I have the following code below, and its giving me an error saying: "The system cannot find the file specified".
<html>
<script language="javascript" type="text/javascript">
function start_ccm(){
var wsh = new ActiveXObject('WScript.Shell');
wsh.exec("C:\Program Files\WorkDynamics Technologies\ccmApplications\ccmMercury.exe")
}
</script>
</head>
<body>
<input id="Button1" onclick="start_ccm()" type="button" value="START" />
</body>
</html>
There is nothing wrong with the location, but my best guess are the spaces in the file path.
Any help with this is greatly appreciated.
Cheers,
J
I need your help,
I have the following code below, and its giving me an error saying: "The system cannot find the file specified".
<html>
<script language="javascript" type="text/javascript">
function start_ccm(){
var wsh = new ActiveXObject('WScript.Shell');
wsh.exec("C:\Program Files\WorkDynamics Technologies\ccmApplications\ccmMercury.exe")
}
</script>
</head>
<body>
<input id="Button1" onclick="start_ccm()" type="button" value="START" />
</body>
</html>
There is nothing wrong with the location, but my best guess are the spaces in the file path.
Any help with this is greatly appreciated.
Cheers,
J