Code: Select all
@echo off
echo "^"
call echo "^"
call call echo "^"
produces following results for me:
Code: Select all
"^"
"^^"
"^^^^"
Any suggestions?
Moderator: DosItHelp
Code: Select all
@echo off
echo "^"
call echo "^"
call call echo "^"
Code: Select all
"^"
"^^"
"^^^^"
Code: Select all
@echo off
echo "^"
call :next "^"
call :next "^^"
pause
goto :EOF
:next
echo %*
Code: Select all
CALL (echo ha | echo hu)
Code: Select all
@echo off
setlocal EnableDelayedExpansion
set "singleCaret=^"
set "^=one caret"
set "^^=two carets"
echo #1 !singleCaret!
call echo #2 !singleCaret!
call call echo #3 !singleCaret!
call call call echo #4 !singleCaret!
echo #5 %%!singleCaret!%%
call echo #6 %%!singleCaret!%%