Shutdown Windows operating system using C language program
* Write the following program in Turbo C.
----------Program Here----------
#include <stdio.h>
#include <dos.h>
void main()
{
system("shutdown-s");
}
----------Program Here----------
Save this program .Let file name is shutdown.c and compile and execute the above program. Now close the turbo c compiler and open the directory in window you have saved the shutdown.c ( default directory c:\tc\bin) and double click the its exe file(shutdown.exe).After some time your window will shutdown.
No comments:
Post a Comment