HOW TO SHUT DOWN YOUR PC USING C++ - we say welcome to the blog
Tecno Android Phones we provide a lot of latest gadget information that must be very dear for you to miss, now we will discuss first about HOW TO SHUT DOWN YOUR PC USING C++ we have collected a lot of information to make this article to complete for you, Please read:
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 :-)
Articles about HOW TO SHUT DOWN YOUR PC USING C++ finished discussed
We think it is enough information about HOW TO SHUT DOWN YOUR PC USING C++, hopefully the information we give can give benefit for you,
If you feel the information HOW TO SHUT DOWN YOUR PC USING C++ that we provide can provide benefits for others please share with link https://southernmatron.blogspot.com/2013/05/how-to-shut-down-your-pc-using-c.html thank you for visiting our blog page and do not forget to visit other pages.
Tag :
0 komentar:
Post a Comment