Ver Mensaje Individual
  #2 (permalink)  
Antiguo 01/07/2004, 04:06
Avatar de GeRuNdIo
GeRuNdIo
 
Fecha de Ingreso: marzo-2004
Ubicación: Sanlúcar de Barrameda, Cádiz
Mensajes: 232
Antigüedad: 20 años, 2 meses
Puntos: 2
Hola!!
Aqui te pongo el código en C#:

Código:
using System;
using System.Diagnostics;
using System.ComponentModel;

namespace ShutPc
{
 class PowerOff
 {

  [STAThread]
  static void Main(string[] args)
  {
   //try to shut down windows use shell "shutdown.exe -s" (shutdown) shell
"shutown.exe -r" (reboot)
   Process.Start("shutdown.exe","-s" );
   //shell
  }
 }
}
Espero que te sirva!!
Saludos!!!!
__________________
Una buena forma de sacar las castañas del fuego sin quemarse: LEE FOROSDELWEB..... :si:
------
F.P.R. MCAD .NET