简体   繁体   中英

In Eclipse, how can I add a toolbar button to run a batch file?

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM