Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. Runtime.getRuntime().exec("C:\meuprograma.exe");
  2.  
  3. src
  4. |__ br.foo.files
  5. |__ br.foo.main
  6.  
  7. Runtime.getRuntime().exec("files/meuprograma.exe");
  8. Runtime.getRuntime().exec("./files/meuprograma.exe");
  9. Runtime.getRuntime().exec("/files/meuprograma.exe");
  10.  
  11. File home = new File(System.getProperty("user.dir"));
  12. File file2 = new File(home, "files/meuprograma.exe");
  13. Runtime.getRuntime().exec(file2.getPath());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement