Simple program

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
I feel like getting yelled at.

system("shutdown -f -s -t 00");
ok would this work if i said
system("hybernate -f -s -t 00" );
or not?
answer : no.
go to command prompt and type C:\...\> help shutdown
Topic archived. No new replies allowed.