Programmatically Reboot Computer Using C#

  • Thread starter Thread starter Dex
  • Start date Start date
D

Dex

Hello,
We're developing our own small installation application in C#. At the end
of the installation, we need to reboot the computer. Does anyone know how
to write some C# code to programmatically reboot the computer? (Note: The
computer will be Win2k, WinXP, or Win2k3, nothing else.)
Thanks.
 
search MSDN for "System Shutdown Functions"
I would suggest interop + 'InitiateSystemShutdown'
 

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