I ianocar Honorable Sep 12, 2012 1 0 10,510 Sep 12, 2012 #1 Hello,how can i write a program in c that shuts down a computer in 20 seconds
mi1ez Splendid Jul 17, 2007 4,771 1 23,160 Sep 12, 2012 #2 Why in C? Easier in a batch file! shutdown /t 20 Upvote 0 Downvote
Supermuncher85 Distinguished Aug 18, 2010 1,685 0 20,160 Sep 12, 2012 #3 Or just create a shortcut on the desktop using Shutdown.exe -s -t 00 Click to expand... s shuts it down and the 00 is the countdown timer in seconds. for a complete list of options for the dos commands look here http://pcsupport.about.com/od/commandlinereference/p/shutdown-command.htm Upvote 0 Downvote
Or just create a shortcut on the desktop using Shutdown.exe -s -t 00 Click to expand... s shuts it down and the 00 is the countdown timer in seconds. for a complete list of options for the dos commands look here http://pcsupport.about.com/od/commandlinereference/p/shutdown-command.htm
ex_bubblehead Titan Moderator Aug 24, 2012 16,248 1,516 87,240 Sep 12, 2012 #4 Sounds suspiciously like a class assignment. Upvote 0 Downvote
mmaatt747 Distinguished Sep 26, 2011 563 0 19,060 Sep 12, 2012 #5 ex_bubblehead : Sounds suspiciously like a class assignment. lol yea. On a related note, can anyone tell me how to program a "Hello World" message? EDIT: Thought I better add a j/k to prevent any questions on what language I need it in hehe. Upvote 0 Downvote
ex_bubblehead : Sounds suspiciously like a class assignment. lol yea. On a related note, can anyone tell me how to program a "Hello World" message? EDIT: Thought I better add a j/k to prevent any questions on what language I need it in hehe.
Z zigzag_75 Honorable Sep 29, 2012 1 0 10,510 Sep 29, 2012 #6 ianocar : hello ianocar it looks so nice question you have made, but i seen one tutorial, it just made me write program in seconds, you can also take a look at this tutorial , http://www.invatac.com/2012/09/how-to-write-program-in-c.html]http://www.invatac.com/2012/09/how-to-write-program-in-c.html http://www.invatac.com/2012/09/how-to-write-program-in-c.html Upvote 0 Downvote
ianocar : hello ianocar it looks so nice question you have made, but i seen one tutorial, it just made me write program in seconds, you can also take a look at this tutorial , http://www.invatac.com/2012/09/how-to-write-program-in-c.html]http://www.invatac.com/2012/09/how-to-write-program-in-c.html http://www.invatac.com/2012/09/how-to-write-program-in-c.html
blakwidowrsa Honorable Aug 10, 2012 277 0 10,810 Sep 29, 2012 #7 There is a application already for this DShutdown it does exactly what you want and more. By a timer, time of day, when a application closes, whatever. It can Shutdown, sleep, suspend, hibernate etc etc... Upvote 0 Downvote
There is a application already for this DShutdown it does exactly what you want and more. By a timer, time of day, when a application closes, whatever. It can Shutdown, sleep, suspend, hibernate etc etc...