I am putting conditional statement for exit in batch file.
:choice
set /P c=Do you want to exit [y/n]?
if /I "%c%" EQU "Y" goto :optA
if /I "%c%" EQU "N" goto :optB
goto :choice
:optA
pause
exit
:optB
pause >nul
pause>nul does not work as expected.
I wish to have gain control in command prompt once I say No in the exit options in above code.