There is a way to run any command from a html link. Just like any good it
takes some work. I got the idea from a post on this list a year plus ago.
I'm not at work right now so I don't have the files to send. I will try to
get it out next week.
So here is the run down...
A. It uses VBS so you must use IE on Windows. Others might work, but I
don't know.
B. Because of the VBS and running a system command, your WUG server must be
a trusted site. With the security set at low. You can play with this and
get it set custom to work for you, but you should start out with low
security.
C. Create a VBS function to run the system command you want. Then create
your html link and give it 'OnClick' option to run the function you want.
This works great for us. I have setup very many functions. The page gives
us the right set of commands for the right device type. For example, on the
device type of PC we can run the VNC viewer and a number of the PStools.
I hope this helps you out.
Jeff Cook
Network Administrator
Whatcom Educational Credit Union
<!-- Put this in the header section of the page you want the links on. -->
<script language="vbscript">
Function EventViewer()
Set WShell = CreateObject("WScript.Shell") ' create a shell object
WShell.Run "eventvwr.exe \\<%DEVICE% DISPLAY_NAME>"
End Function
Function PingHostName()
Set WShell = CreateObject("WScript.Shell") ' create a shell object
WShell.Run "cmd /c title <%DEVICE% DISPLAY_NAME>: Ping & ping -t <%DEVICE%
HOSTNAME>" & " & pause"
End Function
Function PingIP()
Set WShell = CreateObject("WScript.Shell") ' create a shell object
WShell.Run "cmd /c ping -t <%DEVICE% IP_ADDRESS>" & " & pause"
End Function
</script>
<!-- Put the following links where ever you want the links. -->
<a href='#' onClick='EventViewer()'>Event Viewer</a>
<a href='#' onClick='PingHostName()'>Ping Host Name</a>
<a href='#' onClick='PingIP()'>Ping IP</a>