@echo off Set variable=hola echo %variable:~0,1%echo %variable:~1,1%echo %variable:~2,1%echo %variable:~3,1% pause
@echo offsetlocal enabledelayedexpansion:codeset /p "string=s : "if not defined string (goto:code) set temp=%string% set contador=0:sizeif not defined string (goto:end)set string=%string:~1%set /a contador+=1goto:size :endset /a contador-=1for /l %%_ in (0, 1, %contador%) do ( echo !temp:~% style="color: #448888;">%_,1!)pause
(( 1 / 0 )) &> /dev/null || { echo -e "stderrrrrrrrrrrrrrrrrrr";}
@ECHO OFFSET PALABRA=MARICA EL ULTIMOECHO.& ECHO PAL: %PALABRA%& ECHO.: BUCLE CALL SET PAL=%%PALABRA:~%CONT%,1%% SET /A CONT+=1 IF DEFINED PAL (ECHO STR: %PAL% GOTO :BUCLE)PAUSE>NUL