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");
}
}