23. marts 2002 - 08:24
Der er
1 kommentar og
1 løsning
en komando til at åbne exe filer
Er der nogen der kender en komando til at åbne exe filer i java, en komando lige som shell i visual basic, som kan åbne en exe fil?
23. marts 2002 - 09:41
#2
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