martes, 27 de octubre de 2009

exec(String cmd): void

//ejecuta el comando pasado como cmd en la consola del sistema

public static void exec(String cmd) {
try {
Runtime.getRuntime().exec(cmd);
} catch (IOException e) {
System.out.println("Failed");
}
}

No hay comentarios:

Publicar un comentario