|
-
Nov 14th, 2002, 04:03 PM
#1
Thread Starter
Member
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
-
Nov 14th, 2002, 08:21 PM
#2
Fanatic Member
which operation system are you using??
-
Nov 15th, 2002, 05:57 AM
#3
Frenzied Member
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.
-
Nov 15th, 2002, 07:52 AM
#4
Fanatic Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|