I am running two batch Java classes fron windows batch file in a sequence. I want to give an option to exit after the first class is run; after the first pause statement.
How do I use jump to terminate the program if the user wants to close it without using the close button on GUI?
Also, can PAUSE e customised to change its default message?
@ECHO off
color 0E
ECHO Running prog.....
ECHO Step 1 commences....
java -cp D:\proj\bin;D:\proj\mysql-connector-java-5.1.12-bin.jar com.Class1
ECHO Please ensure modem is on and press any key!
ECHO Step 2 commences....
PAUSE
:: Give option to exit
java -cp D:\proj\bin com.Class
echo Completed program.....
PAUSE
>nulafter thepausesopause>nulto make it not printpress any key to continue . . .