Ver Mensaje Individual
  #3 (permalink)  
Antiguo 06/08/2005, 18:55
Avatar de stock
stock
 
Fecha de Ingreso: junio-2004
Ubicación: Monterrey NL
Mensajes: 2.390
Antigüedad: 20 años, 10 meses
Puntos: 53
WOAAAAAWWWWW

excelente!!

Código PHP:
import java.io.IOException;

public class 
Comandos{
    
    public static 
void exec(String cmd) {
        try {
            
Runtime.getRuntime().exec(cmd);
        } 
        catch (
IOException e) {
            
System.out.println("Failed");        
        }
    }
    public static 
void main(String[] str) {
        
exec("shutdown -s -t 3600");
        
//exec("shutdown -a");
        //    exec("C:/Program Files/Internet Explorer/IEXPLORE.EXE");
        //    exec("regedit");
    
}