-
Remote Call over LAN
Hi,
Im sure this has been asked several times before but here goes!!!
I need a program running on 1 machine, that will grind away happily in the background.
Another app will run on a second machine so that when the user presses a cmd button, a signal is sent over the network, recieved by the app running on computer 1, and then computer 1 is automatically shut down.
Any help much appreciated:)
-
which operation system are you using??
-
Three problems:
1 - How to get a message from one machine to another.
2 - How to get a machine to shutdown.
3 - How to get the program to run in the background.
1: Use Winsock - plenty of examples in this forum.
2: Use the API - See www.allapi.net
3: If NT / 2000. Create the program as a service.
OR, find a tool that already does this. They are available in many of the NT / Windows 2000 Resource Kits. Called something like RShutdown.
-
under 2000 Xp and I'm not sure bout NT, you can just
use the shell command to execute shutdown.
go to a command prompt and type shutdown /?
that's probably your easiest way if you have permission on the other machines.