program that shuts down pc

  • Thread starter Thread starter Gabriele O.
  • Start date Start date
G

Gabriele O.

Hello,
I need a simple program that, after being executed, shuts down the
computer. Where can I find it?

Thank you in advance.
 
Have you tried Start/Shutdown?

That would be easy ;)
I'd like to have a program that shuts down the pc, in order to execute
it in a scheduled task (so I can shut down the computer on a certain
time).
 
Gabriele O. said:
That would be easy ;)
I'd like to have a program that shuts down the pc, in order to execute
it in a scheduled task (so I can shut down the computer on a certain
time).

Can't help you, sorry. I practically never shut my computers down.

Alias
 
Gabriele O. said:
Hello,
I need a simple program that, after being executed, shuts down the
computer. Where can I find it?

Thank you in advance.

You should Google for a program, else write one yourself using
Windows API function ExitWindowsEx(..) which either logs off
the current user, shuts down the system or restarts the system. It
sends the WM_QUERYENDSESSION to all applications to
determine if they can be terminated. You can also use the
EWX_FORCE for an emergency shutdown (applications
may lose data) or EWX_FORCEIFHUNG to force hung
applications to terminate. See MSDN for more.
 
Greetings --

Have you tried C:\Windows\System32\Shutdown.exe?

Bruce Chambers
--
Help us help you:



You can have peace. Or you can have freedom. Don't ever count on
having both at once. - RAH
 
Greetings --

Oops! Wrong OS; I was thinking of WinXP. (Although, iirc, I
believe Shutdown.exe was available with the Win2K Resource Kit.)

Bruce Chambers
--
Help us help you:



You can have peace. Or you can have freedom. Don't ever count on
having both at once. - RAH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top