Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
String call = "netsh"
String[] cmd = {"cmd", "/c", call};
Process start = new ProcessBuilder().command(cmd).redirectErrorStream(true).start();
Gut zu wissen :toll:Siehe dir mal den ProcessBuilder an...
Beispiel:
Java:String call = "netsh" String[] cmd = {"cmd", "/c", call}; Process start = new ProcessBuilder().command(cmd).redirectErrorStream(true).start();
Nach dem Aufruf hast du den Output-, Input- und ErrorStream von dem Aufruf zur Hand:
start.getOutputStream()
start.getInputStream()
start.getErrorStream()