try { Process p = Runtime.getRuntime().exec("command.com /c dir");}catch (IOException except) { // Behandele die Exception System.out.println("Fehler: " + except);}