I have a batch script template that includes a choice in it, I want to have the question for what the end-user wants to do, and the choice description(s) below the question. Here is my template:
@ECHO OFF Color __ TITLE %TITLE% ECHO. :choice set /P c=Do you want to %CHOICE%? & ECHO.(%DESCRIPTION%) if /I "%c%" EQU "Y" goto :choice_yes if /I "%c%" EQU "C" goto :choice_cancel goto :choice :choice_cancel echo %CHOICE% has been cancelled. :choice_yes :: Insert additional commands or code here. pause @ECHO OFF
As you can see in the script, I have already attempted
& ECHO.(%DESCRIPTION%) among other methods that insert a new line. I believe there needs to be an additional
ECHO before the actual choice question with the above method, but due to the structure of the code I don't know where to place it. What am I doing wrong? Is there perhaps a character that needs to be escaped due to syntax?