#include <stdio.h>
#include <stdlib.h>
main()
{
int ch;
printf("Enter 1 to shutdown the system:\n");
scanf("%d",&ch);
if (ch == 1)
system("C:\\WINDOWS\\System32\\shutdown /s"); //you can use /r in place of /s to restart the system
return 0;
}
This program is for windows 7......if you enter 1 the system will shutdown....
try this frenzz.....
#include <stdlib.h>
main()
{
int ch;
printf("Enter 1 to shutdown the system:\n");
scanf("%d",&ch);
if (ch == 1)
system("C:\\WINDOWS\\System32\\shutdown /s"); //you can use /r in place of /s to restart the system
return 0;
}
This program is for windows 7......if you enter 1 the system will shutdown....
try this frenzz.....
0 comments:
Post a Comment