Escape Characters in Batch File
Följande kan användas för att få till CR/LF i en sträng i en Batchfil
$0a Line feed (LF)
$0d Enter (CR)
@echo off
echo Bj@jzh`0X-`/PPPPPPa(DE(DM(DO(Dh(Ls(Lu(LX(LeZRR]EEEUYRX2Dx=>%temp%.echohex.com
echo 0DxFP,0Xx.t0P,=XtGsB4o@$?PIyU!WvX0GwUY Wv;ovBX2Gv0ExGIuht6>>%temp%.echohex.com
echo ?A}I}KIuwHHTCI[GAGExtc{OCIKGMgELCI?GGgELAs?GH`LRBcx=k_K?Ax>>%temp%.echohex.com
echo VD?fCo?CaBBHAv0>>%temp%.echohex.com
echo.
%temp%.echohex This line contains $1b $3c $3e $01 $7c $25 and $24$0a$0d
%temp%.echohex $1b This is an Esc character (far left)$0a$0d
%temp%.echohex This is an End Of File character $1A$0a$0d
if "%1"=="" echo. You may enter hex values for parameters 1-9
if not "%1"=="" echo. Hex values for parameters entered are:
if not "%1"=="" %temp%.echohex %1 %2 %3 %4 %5 %6 %7 %8 %9
del %temp%.echohex.com
