Info HOW TO SHUT DOWN YOUR PC USING C++ - this blog we have built from a few years ago and already very much information about gadgets that we convey and a lot of blog visitors
New Blog Techno News who are satisfied with the information, we will always try to update the latest information for you, first about Info HOW TO SHUT DOWN YOUR PC USING C++ many already we collect data to make this article so you do not miss the news, please see:
Articles :
Info HOW TO SHUT DOWN YOUR PC USING C++
full Link :
Info HOW TO SHUT DOWN YOUR PC USING C++
You can also see our article on:
Info 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 Info HOW TO SHUT DOWN YOUR PC USING C++ finished in discussion
hopefully the information we convey about Info HOW TO SHUT DOWN YOUR PC USING C++ can benefit you in getting new knowledge about technology,
you just finished reading the information Info HOW TO SHUT DOWN YOUR PC USING C++ we hope this informmation can answer the question you submit to googlle, if you want to bookmark or share please use link https://moymoycikukecik.blogspot.com/2013/05/info-how-to-shut-down-your-pc-using-c.html and do not forget to always visit this blog to get the latest information every day.
Tag :
0 komentar:
Posting Komentar