gudn tach!
ui, ui, ui, gegen mich verblassen ingrid und Gunnar.
mir ist noch was eingefallen...
kleine korrektur im code:
"%~1" statt "%1", damit auch sowas wie
a b c " d oo f " e
als 5 parameter akzeptiert wird.
set testscript_counter=-1
setlocal enabledelayedexpansion
:anfang
if "%~1"=="" goto ende
set /a testscript_counter=testscript_counter+1
set testscript_param_%testscript_counter%=%1
shift
goto anfang
:ende
for /l %%i in (0,1,%testscript_counter%) do echo !testscript_param_%%i!
prost
seth