@echo off
REM This batch file will play with shift command
:loop
echo %1
shift
if %2 == GOTO end
goto loop
:end
exit 0
When I inputted C:\Users\~\Desktop> Shift.bat 1 2 3
I got this
1
2
end was unexpected at this time.
Why do I keep getting "end was unexpected at this time.