CODE: [Copy to clipboard]@echo off echo y>%temp%\3.txt set /p tt=<%temp%\3.txt if %tt%==y (echo YES) else (echo NO) pause del %temp%\3.txt