@echo off setlocal if "%1"=="noechoback" ( set /p LINE=NUL echo; >CON ) else ( set /p LINE=CON ) set /p DUM="%LINE%"