简体   繁体   中英

Execute batch in java using eclipse

I have a batch that is run in putty. How can I run it using java in eclipse. Can it be executed in a command prompt?

You can run your .bat file using the External Tools .
Open Run -> External Tools -> External Tool Configurations
In External Tool Configurations you can create a new configuration under Program and select the .bat file for the Location Field.

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