Friday, 8 May 2015

How to Shutdown Computer By C program?

#include<stdio.h>
main()
{
system("shutdown /p");//for shutdown
system("shutdown /h");  //for hibernate
system("shutdown /l");//for log out

// this can aslo use to run any system process
}

No comments:

Post a Comment