@echo off setlocal setlocal ENABLEDELAYEDEXPANSION if "%~1"=="noechoback" ( call :read_s if ERRORLEVEL 1 exit /b 1 ) else ( set /p INPUT=CON ) set /p ="'%INPUT%'"NUL 2>&1 :: Win <7 and