Contact Learn C
Copy

Program 257: Program to run html file,to shutdown and to restart using C

Program 257: Program to run html file,to shutdown and to restart using C
To Run HTML file 
#include<stdio.h>
#include<stdlib.h>
main(){
 system("H:\\happynewyearfinalmake\\seewhatishidden.html");
}



To Restart PC for Windows 7 
#include <stdio.h>
#include <stdlib.h>
int main()
{
   system("C:\\WINDOWS\\System32\\shutdown /r");
   return 0;
}



To Shutdown PC for Windows 7 
#include <stdio.h>
#include <stdlib.h>
int main()
{
   system("C:\\WINDOWS\\System32\\shutdown /s");
   return 0;
}


Explanation:

Make sure the html file path should be correct


Donate

Download App and Learn when ever you want

Get it on PlayStore
Get it on Amazon App Store
Get it on Aptoide