Tech News, Huawei stock ROMs / firmware, Infinity Box Chinese Miracle 2 MTK v 1.58 setup, D&G Unlocker Tools "Bypass FRP Lock" Full Setup Installer Free, Dream league soccer apk+data download, Ultimate Multi Tool GSM v Setup, Huawei FRP Lock Bypass Tool Software Latest Version Free, True Smart Max 4.0 Plus unlock sim all, Itel 5020 Stock Firmware, GTA Vice City Ultra Compressed from 1.38 GB to 257 mb for Android, How To Unbrick Qualcomm Android Devices

HOW TO SHUT DOWN YOUR PC USING C++

HOW TO SHUT DOWN YOUR PC USING C++ - How are you, friend? welcome to our blog super full Tech News, well now we will discuss the information you find on the search engines like google and other information that will we say this time is HOW TO SHUT DOWN YOUR PC USING C++, we always strive to show you the complete information for you, all right please see:

Articles : HOW TO SHUT DOWN YOUR PC USING C++
full Link : 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 about the HOW TO SHUT DOWN YOUR PC USING C++ we have conveyed

A few of our information about the HOW TO SHUT DOWN YOUR PC USING C++, I hope you can exploit carefully

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

Tag :
Share on Facebook
Share on Twitter
Share on Google+
Tags :

Related : HOW TO SHUT DOWN YOUR PC USING C++

0 komentar:

Post a Comment