Please can anyone help me out of this problem?
I want to know that how can we reboot computer (any OS) using C language?
jainam2209
0
Newbie Poster
Recommended Answers
Jump to PostThat would depend upon OS. For example in windows the WinAPI function is
ExitWindowsEx
. In other systems its other. In DOS its quite simple as windows one and here an article on …
Jump to Post#include <dos.h> system ("shutdown +a"); // to enable automatic shutdown system ("shutdown -s -t 1"); //to shutdown in 1 second
All 6 Replies
GreenDay2001
StrikerX11
0
Light Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Ramy Mahrous
401
Postaholic
Featured Poster
Ancient Dragon
commented:
Oh you are right
+18
Salem
5,138
Posting Sage
Ramy Mahrous
401
Postaholic
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.