Hi everybody, Really shutdown our PC through c language, yes it is true. Now you can shutdown your PC through C. and we can also use timer to shutdown. One of the main thing is once we execute this program in C the .EXE file is created. The next time to double click on this .exe file to shutdown your PC.
Step1:- First Open C programing language
Step2:- Type This source code
Source code:-
include<stdlib.h>
include<dos.h>
void main(void)
{
system("shutdown -s");
}
Step3:- Compile the program
Now The timer starts the default time is 30 seconds after the time the system will shutdown automatically.
Step1:- First Open C programing language
Step2:- Type This source code
Source code:-
include<stdlib.h>
include<dos.h>
void main(void)
{
system("shutdown -s");
}
Step3:- Compile the program
Now The timer starts the default time is 30 seconds after the time the system will shutdown automatically.
0 comments:
Post a Comment