stephenmbell
IS-IT--Management
I have an asp page with a list of 600+ links to machines with vnc running on them.
I am looking to click on the link and have it automatically run vnc, and log me in.
I can get vnc to run from page, but when I try to pass it parameters (like server name or password) i get an asp error.
This Code Works:
The code below:
Any help is greatly appreciated. Thank you.
I am looking to click on the link and have it automatically run vnc, and log me in.
I can get vnc to run from page, but when I try to pass it parameters (like server name or password) i get an asp error.
This Code Works:
Code:
...
<script language="vbscript">
Sub RunExe(strIpAddress)
set wshell = createobject("wscript.shell")
strAppPath = "C:\Program Files\ultraVNC\vncviewer.exe
wshell.run chr(34) & strAppPath & chr(34)
End Sub
</script>
...
...
<input type="button" onclick="RunExe(192.168.1.1')">
...
This code will run vncviewer.exe. I would then have to type in teh IP address and password
Code:
...
<script language="vbscript">
Sub RunExe(strIpAddress)
set wshell = createobject("wscript.shell")
strAppPath = "C:\Program Files\ultraVNC\vncviewer.exe " & strIpAddress & " /password pw"
wshell.run chr(34) & strAppPath & chr(34)
End Sub
</script>
...
...
<input type="button" onclick="RunExe(192.168.1.1')">
...
This code I get "the system cannot find the file specified"
Any help is greatly appreciated. Thank you.