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

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

问题描述

我的 Java 应用程序是通过运行批处理文件(.bat 文件)中的一组命令来启动的.我将它导入到 Eclipse 工作台中.如何从 Eclipse 执行批处理文件.和命令行类似,我直接给出path: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.

推荐答案

您可以使用 外部工具 功能(在运行菜单中).

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

示例:

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

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