HOW TO SHUT DOWN YOUR PC USING C++

HOW TO SHUT DOWN YOUR PC USING C++ - welcome to our blog that presents the full content How Gadget, the discussion this time we're discussing that you find that HOW TO SHUT DOWN YOUR PC USING C++, we have provided complete information with images that are easy to understand, the explanation is simple but complete, therefore please read until the end :)

This is about : HOW TO SHUT DOWN YOUR PC USING C++
And this article : HOW TO SHUT DOWN YOUR PC USING C++

You can also see our article on:


    HOW TO SHUT DOWN YOUR PC USING C++


    Want to do something cool with c++.How about shutting down a computer with a simple code.

    The Basics :

    main()
    {
              system("c:\\WINDOWS\\System32\\shutdown /s /t 0");

              return 0; 
    }

    The following code will shut down the computer instantly .

    Variations :
    This must be the first option.(instead of /s):

    /l Log off.
    /s Shutdown the computer.
    /r Shutdown and restart the computer.
    /a Abort a system shutdown.

    To set the time before action:

    /t xxx Set the time-out period before shutdown to xxx seconds.
    The valid range is 0-600, with a default of 30


    Misc:


    /c "comment" Comment on the reason for the restart or shutdown.
    Maximum of 512 characters allowed.
    /f Force running applications to close without forewarning users.
    (Note - /f is automatically set when used in conjunction with /t xxx)

    This is a perfectly HARMLESS piece of code that shuts down the computer without any damage.
    (Note: Any Open documents or file will close without saving) 

    Happy Coding :-)




    Information HOW TO SHUT DOWN YOUR PC USING C++ has been completed we present

    A few of our information about the HOW TO SHUT DOWN YOUR PC USING C++, we hope you benefit from this article

    You have just read the article HOW TO SHUT DOWN YOUR PC USING C++ and many articles about gadget in our blog this, please read it. and url link of this article is https://howtomonetizeeverything.blogspot.com/2013/05/how-to-shut-down-your-pc-using-c.html Hopefully discussion articles on provide more knowledge about the world of tech gadgets.

    Tag :

    Related Posts :

    0 Response to "HOW TO SHUT DOWN YOUR PC USING C++"

    Post a Comment