Translate

Labels

Sunday 16 June 2013

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............");
}

No comments: