dEEpEst
☣☣ In The Depths ☣☣
Staff member
Administrator
Super Moderator
Hacker
Specter
Crawler
Shadow
- Joined
- Mar 29, 2018
- Messages
- 13,860
- Solutions
- 4
- Reputation
- 27
- Reaction score
- 45,546
- Points
- 1,813
- Credits
- 55,090
7 Years of Service
56%
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 -
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.
[/CODE]
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 -
To see this hidden content, you must like this content.
/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.
[/CODE]