Code: Select all
@echo off
set /p input=please input a number:
set num1=%input%
set num2=123
if %num1% equ %num2% echo "="
if %num1% lss %num2% echo "<"
if %num1% gtr %num2% echo ">"
pause>nul
pure dos,not in the command(win),get error message on the line(set /p input=please input a number:),
i got the reason why error(in the dos,command 'set' have no /p),but i have no idea to modify the code,
nice guy can help me?