简体   繁体   中英

How Batch File will wait for Java application finish running first before calling other function

In Batch file if I want to wait for the exe program to finish before call other exe or function I use

start /WAIT application.exe

I have a Java application I run.

Java -cp "path" applicationName

is there a way batch file can wait for this application to finish first before it continues calling other functions same as the /WAIT option

thank you in advance

您可以将Java -cp“ path” applicationName放在单独的批处理文件(例如applicationName.bat)中,然后使用主批处理中的call applicationName.bat

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