We have upgraded our system to latest version of MyBB. We are very sorry for the downtime ! Read More.
Advertise Here | Remove Ads

How to shut down the PC with C or C++ code ?
  • 0 Vote(s) - 0 Average


Need Help How to shut down the PC with C or C++ code ?
1
Hi
 I want to shut down my computer with a C or C++ program. How can I do that ?



2
Hmm I don't know anything about c# but there has been a similar question on stackoverflow. Go have a look there!

Reply


3
I think you can shut down a Windows based computer with below command

Code:
shutdown -s

For C/C++ use Windows.h header file and System() for this.
I hope it will help you Big Grin

Reply





Forum Jump:


Users browsing this thread:
1 Guest(s)

Advertise Here | Remove Ads