Jump to content
YOUR-AD-HERE
HOSTING
TOOLS

Locked How to Shut Down Your Computer Through C Program 


dEEpEst

Recommended Posts

 How to Shut Down Your Computer Through C Program 

To shutdown your computer using C program, You'll need to call the system() function which will call the cmd.
stdlib.h contain the system() function and it is used to run any executable file. 

C Program Code - 

This is the hidden content, please


Note - Save the file with .c extension. 
/s represents shutdown
/t represents Time means after how much time you wanna shut down your pc. If you will not define the time, By default it will shut down your pc after 30sec.

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.