17735
Nov 02, 2007, updated at Nov 14, 2007 (UTC)
14654
3
0
Externe EXE ausführen und Ausgabe in einer Variablen vom Typ String speichern
Hallo,
ich starte in Java mit dem Befehl
eine externe EXE-Datei. Diese EXE gibt auf der Kommandozeile etwas zurück. Wie kann ich das "abfangen" und in einer Variablen vom Typ String speichern?
Gruß,
Ahnenforscher
ich starte in Java mit dem Befehl
Runtime.getRuntime().exec("Pfad\\zur\\Exe.exe");
eine externe EXE-Datei. Diese EXE gibt auf der Kommandozeile etwas zurück. Wie kann ich das "abfangen" und in einer Variablen vom Typ String speichern?
Gruß,
Ahnenforscher
Please also mark the comments that contributed to the solution of the article
Content-Key: 72600
Url: https://administrator.de/contentid/72600
Printed on: April 23, 2024 at 22:04 o'clock
3 Comments
Latest comment