As some of you may know from my previous posts I am trying to set up an
internet page on our intranet that contains logoff/shutdown and restart
buttons. This needs to work in a remote desktop situation which rules out
various options.
Anyway I found an application called shutdown.exe
(http://www.budja.com/shutdown/) that does work in a remote desktop
environment.
Next stage is to call this .exe from a webpage...which I'm struggling with.
My test code (to test a reboot) is below but doesn't seem to work. Can
anyone help remembering this needs .exe needs to run on the local machine
and not the server.
Many thanks
JonBoy
<Script language="vbscript">
Set WSHShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "c:\shutdown.exe -r"
</script>