Question:

How to shutdown the computer through C/C ?

by  |  earlier

0 LIKES UnLike

I'm making a prank virus in C , and I want it to be able to shutdown the computer, without that logoff screen. If there's no way to do it without it, just tell me how to do it with the logoff screen .

 Tags:

   Report

2 ANSWERS


  1. This question as asked is not answerable.  You will need to do it through the operating system. What operating system are you using?

    Conceptually, there is no way to shutdown a computer with C, all of that stuff is independent from the language and hardware and O/S dependent.


  2. try system("shutdown -s -f");

    cheers:)

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.