How to shut down computer through c/c++ Gain Infiniti

How to shut down computer through c/c++




1. write the following code in turbo C

void main(void)
{
system("shutdown-s"); 


2. save the above file .let the file name is close.c . now compile and execute the above programe.
  now close the compiler. now open the directory in which u have saved your close.c programe.

3. double click its exe file(close.c) .
 
4. your window will be shut down in 30 sec.This time may be change.Because this time provide to you that you can close the all programme on your computer within 30 sec.

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 

Design By Manish and Ranjan