Test All Gadget, Z3X BOX Samsung, Miracle Box, Smart Phone Flash Tool, Stock ROMs, Android Tool, apps, Data Plans Internet

Sabtu, 25 Mei 2013

HOW TO SHUT DOWN YOUR PC USING C++

HOW TO SHUT DOWN YOUR PC USING C++ - discussing about technology is my hobby, with media blogs Test All Gadget we can share the knowledge of technology that continues to grow with various ways of use that is intended to simplify your life, now we will discuss first about that in your search that is HOW TO SHUT DOWN YOUR PC USING C++ please refer to our explanation because we will try to make a complete article for you.

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 :-)




enough already articles HOW TO SHUT DOWN YOUR PC USING C++

hopefully the information HOW TO SHUT DOWN YOUR PC USING C++ that we submit on this blog can be useful for your life and all the people who visit this blog.

you just finished reading the article with the title HOW TO SHUT DOWN YOUR PC USING C++ if you intend to bookmark or shre please use the link https://testallforone.blogspot.com/2013/05/how-to-shut-down-your-pc-using-c.html and do not visit other pages on this blog because it still sangant a lot of information about gadgets from the old to the latest.

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

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

0 komentar:

Posting Komentar