Batch: Befehl für Wiederholungen...

2 Antworten

Vom Fragesteller als hilfreich ausgezeichnet

Probiers mal mit folgenden batch

@echo off
set zahl=0
:start
set /a Zahl=Zahl+1
echo Zahl %zahl%
if %zahl%==10 goto aus
goto start
:aus

Da wird also 10 mal Zahl geschrieben mit der Zahl, die sich hochzählt.

Nachfolgend ein batch mit For Schleife

@echo off
for /L %%i IN (1 1 10) do (
echo zahl %%i
)

Ist also so ähnlich wie der vorhergehend Batch.