Menu

#15 Enable shutdown/restart

open
nobody
5
2006-05-05
2006-05-05
Haddy
No

Excellent tool! Muuuch better than the KiSS link one!

It would be great to be able to shutdown the PC that
runs the freeKiSS server.

I used your source to make a primitive, but easy
modification.

I put dummy files in a separate directory. In the
procedure TMainFrm.TCPServerExecute I put a function
that checks the name of the file that is selected and
performs ana action.
For example if the file is:
- "[120]shutdown pc.mp3", it shuts the PC in 120 seconds
- "restart.mp3" - restarts in 30 sec (default)
- "cancel pc.mp3" - cancels the resrart/shutdown
immediately

I use the shell "shutdown" command for WinXP:

shutdown -r -t XX -c "Restart in XX sec ordered by
yaniKiss. Use shutdown -a to abort..."
(For Win ME, etc it has to be different:
C:\WINDOWS\RUNDLL.EXE user.exe,exitwindowsexec )

I am sure there is more elegant solution and would like
to see it implemented.

Cheers,
Yani

Discussion


Log in to post a comment.