A batch file has the lines:
set hi=Hello^&World!
echo %hi%
It prints Hello
and next outputs the error message:
'World!' is not recognized as an internal or external command,
operable program or batch file.
I want that it prints Hello&World!
.
How to do this?
This works for me:
set "hi=Hello^&World!"
echo %hi%
Outputs
Hello&World!