Little brother, I wrote a batch code that needs to use batch parameters. When testing, I found that some special characters can't be displayed. For example, the following code:
aaa.bat
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
@echo off
setlocal EnableDelayedExpansion
set 111=%1
set 222=%2
set 333=%3
echo !111!
echo !222!
echo !333!
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
I entered "aaa.bat !a =a ;a", but only 3 a's were displayed, and the preceding symbols! = ; were not displayed. I added escape characters ^ in front of these characters, but it was still 3 a's. Everyone, how can I get these special symbols?
aaa.bat
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
@echo off
setlocal EnableDelayedExpansion
set 111=%1
set 222=%2
set 333=%3
echo !111!
echo !222!
echo !333!
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
I entered "aaa.bat !a =a ;a", but only 3 a's were displayed, and the preceding symbols! = ; were not displayed. I added escape characters ^ in front of these characters, but it was still 3 a's. Everyone, how can I get these special symbols?
