Pages

Tuesday, April 8, 2014

PROGRAM FOR SHUTDOWN TIMER

#include<stdio.h>
#include<conio.h>
#include<process.h>
#include<stdlib.h>
void main()
{
int t,i,s;
clrscr();
printf("enter the time in sec:");
scanf("%d",&t);

for(i=0;i<t;i++)
{
delay(1000);
}
s=system("TSSHUTDN.EXE 0 /DELAY:0 /POWERDOWN");
printf("%d",s);
//printf("Shutting down............");
}

Related Posts by Categories

0 comments:

Post a Comment