Thanks a lot yar... This [Process p = Runtime.getRunt ime().exec("cmd /c start/wait .\\scripts\\cal l.bat");] worked fine.
Thanks a lot for your timely help...
User Profile
Collapse
-
How to wait till the end of DOS program started using Runtime.exec(cmd)?
In my Java program I need to call two DOS batch programs namely call.bat and start.bat. First I need to start the batch program call.bat and once that program is completed, I need to call the other batch file start.bat.
The piece of code which I am using is:
public static void ExecuteScripts( ){
try {
\\Start the first batch program call.bat
Process p = Runtime.getRunt ime().exec("cmd /c start...
No activity results to display
Show More
Leave a comment: