/* windows 7 only */
#include<stdio.h>
#include<stdlib.h>
main
{
char ch;
prinf("Do you want to shutdown? (y/n)\n");
scanf("%c", &ch);
if(ch == 'y' || ch == 'Y')
system("C:\\WINDOWS\\System32\\shutdown /s");
/*shutdown command*/
return 0;
}
No comments:
Post a Comment