I required to Echo following information but I am getting error.
echo Mumbai & Banglore
But I am getting error as follows,
'Banglore' is not recognized as an internal or external command,
operable program or batch file.
I required to Echo following information but I am getting error.
echo Mumbai & Banglore
But I am getting error as follows,
'Banglore' is not recognized as an internal or external command,
operable program or batch file.
You can change your command on this way to escape the ampersand:
echo Mumbai \& Banglore
or use single quotes
echo 'Mumbai & Banglore'
In case of use cmd
(Windows) you can use caret:
echo Mumbai ^& Banglore
&
is a statement separator:A & B
means to start execution of A in the background and then immediately start B. In your case, you are runningecho Mumbai
in the background and then startBangalore
. It seems that you don't have in your PATH an executable named Bangalore. However, as roaima and ikkachu already explained, you are not running a unix shell script at all, so this is the wrong place to ask anyway. – user1934428 Apr 20 '22 at 11:59