RosettaCodeData/Task/Command-line-arguments/Batch-File/command-line-arguments-1.bat

16 lines
212 B
Batchfile
Raw Permalink Normal View History

2013-04-10 16:57:12 -07:00
@echo off
setlocal enabledelayedexpansion
set Count=0
:loop
if not "%1"=="" (
set /a count+=1
set parameter[!count!]=%1
shift
goto loop
)
for /l %%a in (1,1,%count%) do (
echo !parameter[%%a]!
)