I'm trying to call second.bat file from first.bat file(Mean to say first.bat is main file which is calling second.bat and second.bat is called one).
first.bat
echo Going to call second batch file
call second.bat
echo End of first batch file.
exit 0
second.bat
@echo off
setLocal EnableDelayedExpansion
cmd /c start /b jre\bin\java -Djava.library.path=nativelib -classpath SampleTest.jar com.test.SampleTest argument1
Here the issue is when I called the second.bat from first batch file , the second.bat file is not giving control back to the first.bat file. Its just hanging.
I'm calling one Java process from second.bat file , after successful launching of that process the control should be go back to the first.bat and finish the rest of the activities of first.bat.
Here the control is not coming back.
Can anyone please help me that how I can achieve this scenario.
Thanks In Advance.
second.bat.