Der findes en hel del overloadede metoder du kan bruge til det:
Process exec(String command) Executes the specified string command in a separate process.
Process exec(String[] cmdarray) Executes the specified command and arguments in a separate process.
Process exec(String[] cmdarray, String[] envp) Executes the specified command and arguments in a separate process with the specified environment.
Process exec(String[] cmdarray, String[] envp, File dir) Executes the specified command and arguments in a separate process with the specified environment and working directory.
Process exec(String cmd, String[] envp) Executes the specified string command in a separate process with the specified environment.
Process exec(String command, String[] envp, File dir) Executes the specified string command in a separate process with the specified environment and working directory.
Alle kan kaste en IOException
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.