如何从Eclipse运行一个批处理脚本(.bat文件) [英] How to run a batch script (.bat file) from eclipse

查看:8749
本文介绍了如何从Eclipse运行一个批处理脚本(.bat文件)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Java应用程序运行一组是在一个批处理文件(.bat文件)present命令启动。我导入到Eclipse工作台本。我如何执行从Eclipse中的批处理文件。到那个在命令行类似,我直接给路径:\\ myBatchfile.bat。有什么办法,我可以直接从Eclipse的事情。

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.

推荐答案

您可以使用打电话给你的.bat文件的<一个href=\"http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.platform.doc.user/concepts/concepts-exttools.htm\">External工具功能(在运行菜单)。

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

例如:

这篇关于如何从Eclipse运行一个批处理脚本(.bat文件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆