Quantcast
Channel: DaniWeb Microsoft Windows Topics
Viewing all articles
Browse latest Browse all 2776

Scripting File Using Shift command in windows batch

$
0
0
@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.


Viewing all articles
Browse latest Browse all 2776

Trending Articles