Sign in with
Sign up | Sign in
Your question

How to write a program in c program that shuts down a computer in 20 seconds

Last response: in Windows 7
Share
September 12, 2012 1:22:06 PM

Hello,how can i write a program in c that shuts down a computer in 20 seconds
a b $ Windows 7
September 12, 2012 1:28:14 PM

Why in C? Easier in a batch file!

shutdown /t 20
m
0
l
Related resources
a b $ Windows 7
September 12, 2012 1:47:31 PM

Sounds suspiciously like a class assignment.
m
0
l
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.
m
0
l
September 29, 2012 11:03:07 AM

There is a application already for this :bounce:  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...
m
0
l
!