A shutdown timer ?

Anyone know of a program that will shutdown a number of programs, including disconnecting from the internet at a certain time ?

And shutdown windows too.

Write in the console/cmd:

Shutdown -s -t 1

It will shotdown the comp in 1 hour.

Umm, funny as it would be if Al_Capone tried that, I feel I must correct:
The time is given in seconds, not hours.

ROFL, too late?

Mystery

If your system doesn’t have the shutdown command (win2k doesn’t, for example), you can get PsShutdown from http://www.sysinternals.com/Utilities/PsShutdown.html

Works like a charm, and you can tell it to shut down (or reboot) in a certain period of time, or at a specified time. I always use it to shut down at midnight to save a bit on the energy bill. Also, you can abort any pending shutdowns. It’s a pretty useful tool, so if you don’t have the shutdown command on your system, give it a shot.

Are there any GNU versions out there ?

I think with some C and python you would be able to create your own shutdown stuff. I saw one time a shutdown script for blender pc’s rendering stuff. So afther a render it shutsdown the pc, I thought I saw it in the python script forum here. :slight_smile:

#include <windows.h>
int main(void)
{
  Sleep(3600000);
  ExitWindowsEx(EWX_POWEROFF, SHTDN_REASON_MAJOR_OTHER | SHTDN_REASON_MINOR_OTHER | SHTDN_REASON_FLAG_PLANNED);
}

There. That’s GPL, if such a small code snippet can even be copyrighted…

See this.

Thanks