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

batch-file, eclipse

Solution

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

Example:

Problem

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.

Original source