Forum Home
Press F1
 
Thread ID: 116086 2011-02-16 04:59:00 How to turn off a PC from within software? BJay (13674) Press F1
Post ID Timestamp Content User
1178824 2011-02-16 04:59:00 I have written a network system (in Jade) which has run well for years.
Each node runs a client application that we'll call "Lib".

Lib has a function which allows the server node operator to send a notification to all workstations to shut down their copy of Lib.

Works fine.

If I knew how to TURN OFF a client computer (i.e. actual electrical shutdown) I could then add that as an option to the broadcast notification.

Can anyone give me a tiny DLL or .exe that, when executed, causes a shutdown of its host?
BJay (13674)
1178825 2011-02-16 05:44:00 What operating system are the clients running?
You can just use the shutdown /s command that is built in to Windows since XP I think.
Run shutdown from the command prompt and you will see all the options.
CYaBro (73)
1178826 2011-02-16 06:59:00 Thanks. This installation is still on Win XP.

Looks like I can (in Jade) run a command script to do a
shutdown /t 30 (say) then
on the next line give Jade's terminate command, which causes an immediate termination of that client app.

I shall try!

Thanks again
BJay (13674)
1