Simple program

Apr 15, 2011 at 2:38am
Does anyone out there know how i could make a general shutdown/hibernate/sleep etc. program to shutdown or put my computer to sleep when i want.
I am running windows 7
Thanks
Carl7145
Apr 15, 2011 at 2:40am
I feel like getting yelled at.

system("shutdown -f -s -t 00");
Apr 15, 2011 at 2:41am
ok would this work if i said
system("hybernate -f -s -t 00" );
or not?
Apr 15, 2011 at 2:44am
answer : no.
Apr 15, 2011 at 2:53am
go to command prompt and type C:\...\> help shutdown
Apr 15, 2011 at 3:00am
Topic archived. No new replies allowed.