This blog displays information about the latest android smartphone, price and specs as well as information applikaksi game that appeals to you, here are also a lot of software that you can download

Sabtu, 25 Mei 2013

HOW TO SHUT DOWN YOUR PC USING C++

HOW TO SHUT DOWN YOUR PC USING C++ - is looking for information, and in this blog Android Gadgets we have been providing very complete information from various sources that reliable, well we'll talk about the HOW TO SHUT DOWN YOUR PC USING C++ as you need, please si read to completion.

Articles : HOW TO SHUT DOWN YOUR PC USING C++
full Link : HOW TO SHUT DOWN YOUR PC USING C++
Article C++, Article How To, Article PC, Article Windows,

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




Articles HOW TO SHUT DOWN YOUR PC USING C++ has been discussed

A few gadget information HOW TO SHUT DOWN YOUR PC USING C++, hopefully can provide benefits to you all.

You're reading an article HOW TO SHUT DOWN YOUR PC USING C++ and this article url is https://androidtabletgadgets.blogspot.com/2013/05/how-to-shut-down-your-pc-using-c.html you can bookmark , Hopefully this article could be useful and do not forget to always to this blog to find information on gadget.

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

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

0 komentar:

Posting Komentar