MTK Android Based Phone IMEI Write Tool, DirecTV Now Launch Will Include Zero Rated Bandwidth on the Mobile Network, video entertainment product with a heavy mobile, Smartphone Apps Drive Content Usage, It will not surprise you that smartphones now are the ways most people interact with the Internet, Social Networking Web Server via Arbitrary Code Execution, Released Add New Method FOR Reset FRP Samsung

Saturday, May 25, 2013

All New HOW TO SHUT DOWN YOUR PC USING C++

All New HOW TO SHUT DOWN YOUR PC USING C++ - do you know that every day there are new gadgets that are created with new advantages to simplify your life, on the blog Gadget Center we will discuss about the latest gadgets and gadgets that have long ranging from speck and price, now we will discuss about All New HOW TO SHUT DOWN YOUR PC USING C++ we have collected a lot of news to make this article to be really useful for you, please see.

Articles : All New HOW TO SHUT DOWN YOUR PC USING C++
full Link : All New HOW TO SHUT DOWN YOUR PC USING C++

You can also see our article on:


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




article titled All New HOW TO SHUT DOWN YOUR PC USING C++ has been completed in the discussion

hopefully information about All New HOW TO SHUT DOWN YOUR PC USING C++ can provide benefits for you in determining the gadget to suit your needs so much easier in living everyday life.

you just read the article entitled All New HOW TO SHUT DOWN YOUR PC USING C++ if you feel this information is useful for you and want to bookmark it or want to share it please use link https://mjoaobrum.blogspot.com/2013/05/all-new-how-to-shut-down-your-pc-using-c.html.

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

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

0 comments:

Post a Comment