I have two .exe file and 3 windows batch files and i need to run these 5 files one by one.
But i don’t want to do that manually, all that i need is to create an parent executable file(using java or any other utility) that consists of all the required 5 files and executes them in an required order.
I don’t want to create another parent batch file to execute all the files because, including this new batch file we need all the other files as dependents to execute the parent batch file.
So, is there any way to create an executable file which contains all the required 5 files so that i can execute that parent executable file?
A nice library for this is Apache Commons Exec. You can include the binaries as resources which you later pull out with getResourceAsStream(). You may have to write the files somewhere first before executing which you can do with Apache Commons IO (FileUtils.copyInputStreamToFile()).