在Eclipse中,如何添加工具栏按钮来运行批处理文件? [英] In Eclipse, how can I add a toolbar button to run a batch file?

查看:206
本文介绍了在Eclipse中,如何添加工具栏按钮来运行批处理文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

说我有一个批处理文件 C:\myscript.bat ,当我按下按钮时,如何添加一个工具栏按钮来运行批处理文件的eclipse?

解决方案

运行 - >外部工具 - >外部工具配置... 任何外部程序,包括Windows批处理文件。



一旦定义,*运行 - >外部工具 - >(脚本名称)将运行您的批处理文件。所以将左键单击工具栏上Run图标右侧的箭头,然后单击脚本名称。


Say I have a batch file C:\myscript.bat, how can I add a toolbar button to eclipse that runs the batch file when I press the button?

解决方案

Under Run -> External Tools -> External Tools Configurations..., you can define any external program, including Windows batch files.

Once defined, *Run -> External Tools -> (name of script) will run your batch file. So will left clicking on the arrow to the right of the Run icon on the tool bar and left clicking on the name of your script.

这篇关于在Eclipse中,如何添加工具栏按钮来运行批处理文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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