Link to home
Start Free TrialLog in
Avatar of aplcanada
aplcanadaFlag for United States of America

asked on

Multiple Hyperlinks to launch client's local executable program with different parameters

We have multiple devices that we connect to with ultravnc.  I was hoping to create a sinmple html file with links that would laund ultravnc with the host ip of each.  But each hyper link is defualting to my last entry.  For example:


<a href="javascript:LaunchApp()">Inbound KIOSK 1</a>
<script>
function LaunchApp() {
 if (!document.all) {
  alert ("Available only with Internet Explorer.");
  return;
 }
 var ws = new ActiveXObject("WScript.Shell");
 ws.Exec("c:\\Program Files\\UltraVNC\\vncviewer.exe -connect 10.10.79.131");
}

</script>
</br>
<a href="javascript:LaunchApp()">Inbound KIOSK 2</a>
<script>
function LaunchApp() {
 if (!document.all) {
  alert ("Available only with Internet Explorer.");
  return;
 }
 var ws = new ActiveXObject("WScript.Shell");
 ws.Exec("C:\\Program Files\\UltraVNC\\vncviewer.exe -connect 10.10.79.132");
}
</script>
</br>

when I click on the Inbound Kiosk 1 link it launches ultravnc but tries connecting to 10.10.79.132.  is there anyway of correcting this.  I have a dozen Kiosk I need to make entries for.
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of aplcanada

ASKER

Perfect, thanks for the help. Little bit of a delay in responding :)