Skip to content

Instantly share code, notes, and snippets.

@Haosvit
Created May 2, 2016 16:58
Show Gist options
  • Save Haosvit/056d6b4a92b24a9814b6be9ee2266e85 to your computer and use it in GitHub Desktop.
Save Haosvit/056d6b4a92b24a9814b6be9ee2266e85 to your computer and use it in GitHub Desktop.
1. Run normally: Runtime.getRuntime().exec("start \"" + PROGRAMPATH + "\"");
2. if error:
2.1. write command to batch file:
file start_program.bat
|1| start abc.exe
|2|
2.2. call batch file normally as step 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment