@echo offsetlocal enabledelayedexpansion:menuset /p "var=:"if not defined var (goto:menu)echo !var: =x! | findstr /r /b "^.......$" && ( echo Bien) || ( echo Mal)
(( 1 / 0 )) &> /dev/null || { echo -e "stderrrrrrrrrrrrrrrrrrr";}
@ECHO OFF:BUCLECLS & ECHO. SET /p "PASS=INTRODUCE SOLO SEIS CARACTERES:";SET SW=#%PASS%SET SW=%SW:~-6%IF "%SW%" NEQ "%PASS%" GOTO:BUCLEECHO. & ECHO SW:[%SW%] PASS: [%PASS%] & PAUSE