Eclipse – How to run a batch script (.bat file) from eclipse

batch-fileeclipse

My Java application is started by running a set of commands that are present in a batch file (.bat file). And I imported this into Eclipse workbench. How do I execute the batch file from Eclipse. Similar to the one in command line, I directly give "path:\myBatchfile.bat". Is there any way I can do directly from Eclipse.

Best Solution

You can call your .bat file using the External Tools feature (in the Run menu).


Example:

enter image description here

enter image description here

enter image description here