#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............");
}
#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............");
}
0 comments:
Post a Comment