If I test the default EOL value ';' using echo ';' inside a for then ';;' is replaced with a space.
But if I use call "%0" it is not.
what's happening ?
Code: Select all
@echo off
if /I "%~1" == "/func" (
echo.::3A#;;3B#
exit
)
for /f "delims=" %%A in ('echo.::3A#;;3B#') do (
echo.%%A
)
for /f "delims=" %%A in ('call "%~0" /func') do (
echo.%%A
)
pause
exit
Code: Select all
::3A# 3B#
::3A#;;3B#
Druk op een toets om door te gaan. . .