Tuesday, October 9, 2007

correr programas com codigo java

-------------------------------------------------------------------------------------------
import java.io.IOException;

public class RuntimeExec {
public static void main(String[] args) {

String command = "explorer"; // aki pode meter o seu executavel

try { Process process = Runtime.getRuntime().exec(command);}
catch (IOException e) {e.printStackTrace();}
}
}
-------------------------------------------------------------------------------------------

No comments: