@echo off setlocal ENABLEDELAYEDEXPANSION :args_loop if "%~1"=="" ( goto args_end ) else if "%~1"=="--noechoback" ( set noechoback=1 ) else if "%~1"=="--keyin" ( set keyin=1 ) else if "%~1"=="--display" ( set "display=%~2" shift /1 ) shift /1 goto args_loop :args_end :: type tmpfile.txt >CON if "%display%" NEQ "" if "%NODE_EXEC_PATH%" NEQ "" ( "%NODE_EXEC_PATH%" "%~dp0decodedos.js" "%display%" >CON if ERRORLEVEL 1 exit /b 1 ) if "%noechoback%"=="1" ( call :read_s if ERRORLEVEL 1 exit /b 1 ) else ( set /p input=CON ) set /p ="'%input%'"NUL 2>&1 :: Win <7 and