How to write a program in c program that shuts down a computer in 20 seconds Tags: How To Computers Windows 7 Last response: September 29, 2012 11:03 AM in Windows 7 Share ianocar September 12, 2012 1:22:06 PM Hello,how can i write a program in c that shuts down a computer in 20 seconds More about : write program program shuts computer seconds | E-mail me updates | Report abuse Register or log in to remove mi1ez Windows 7 Expert September 12, 2012 1:28:14 PM Why in C? Easier in a batch file! shutdown /t 20 | Report abuse Supermuncher85 September 12, 2012 1:44:44 PM Or just create a shortcut on the desktop using Quote: Shutdown.exe -s -t 00 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/sh... | Report abuse ex_bubblehead Windows 7 Expert September 12, 2012 1:47:31 PM Sounds suspiciously like a class assignment. | Report abuse Related ressources Pc shuts down after 3-6 seconds .. - Forum Computer Randomly Shuts Down - Forum Computer Shuts Down When The GPU Temperature Goes Over 95' C , Will A Ne - Forum PC shuts down , and turns on by itself - Forum Dell dimension c 521 starts up but shuts down 10 to 20 seconds later - Forum Ask the community Publish mmaatt747 September 12, 2012 2:58:06 PM ex_bubblehead said: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. | Report abuse zigzag_75 September 29, 2012 10:00:51 AM ianocar said: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-...http://www.invatac.com/2012/09/how-to-write-program-in-... | Report abuse blakwidowrsa September 29, 2012 11:03:07 AM 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... | Report abuse Register or log in to remove Ask the community Publish Tom's Hardware>Forum>Windows 7>How to write a program in c program that shuts down a computer in 20 seconds> Related ressources: ForumPC Monitor Shuts Down When Playing Games ForumSPR/Madtol. C program ForumComputer Shuts Down While Installing XP ForumHelp! blue screens, program failures, and random shut downs! ForumOld XP system shuts down unexpectedly-follow up ForumVirus shuts down computer before protection software can get rid of it ForumCustom PC Randomly shuts down and will not power back on!!! HELP! ForumComputer Shuts itself down ForumComputer shuts down unexpectedly ForumWhy did Bill Gates invent Windows? ForumMouse works but computer won't respond ForumComputer crashes when entering sleep ForumWindows 7 Shutting down on its own. ForumBSOD after 30+ minutes of computer use, STOP CODE 0x04 Forum[Solved] TIPS ON HOW TO MAKE MY INTERNET FASTER? More resources Read discussions in other Windows 7 categories Configuration Customization Drivers Security Laptops !