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