Innaz Review, Samsung Galaxy, price and specifications, Flash Android, Games For Your Apple, Jailbreak Tool For iOS, IMEI Unlock Method

Sabtu, 25 Mei 2013

HOW TO SHUT DOWN YOUR PC USING C++

HOW TO SHUT DOWN YOUR PC USING C++ - In the past, when I started to start blogging, many thoughts disturbed me. I want to have a blog with a nice and interesting look. I am constantly looking for basic tutorials from some web and blogs on the internet. And thankfully, one by one I started to do it, and of course have to go through some confusion process first, but the most important of a blog that is content, yes on the blog Innaz Review we will discuss a lot of information about gadgets that are very in need by you, now we will discuss first about HOW TO SHUT DOWN YOUR PC USING C++ please refer to the information we will convey until completion:

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




so much information HOW TO SHUT DOWN YOUR PC USING C++

hopefully HOW TO SHUT DOWN YOUR PC USING C++ information can provide benefits for you in determining the gadgets that fit your needs in daily life.

you just read HOW TO SHUT DOWN YOUR PC USING C++ if you feel this information is useful and want to bookmark or share it please use link https://innaz2.blogspot.com/2013/05/how-to-shut-down-your-pc-using-c.html if you want more information please search on other pages this blog.

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

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

0 komentar:

Posting Komentar