Zitat:
hoffe, das war einigermassen verstaendlich.
|
Nicht ganz.

Willst du:
zzz.txt enthält:
Code:
parameter wert
x 5
y 10
mit:
Code:
@echo off
setlocal
if exist zzz1.txt del zzz1.txt
set anf=1
set end=5
:begin
for /f "tokens=1,*" %%i in ('type zzz.txt') do (
if "%%i"=="x" echo %%i %anf% >>zzz1.txt
if not "%%i"=="x" echo %%i %%j>>zzz1.txt
)
set /a anf=%anf%+1
if not %anf%==%end% goto begin
enthält zzz1.txt:
Code:
parameter wert
x 1
y 10
parameter wert
x 2
y 10
parameter wert
x 3
y 10
parameter wert
x 4
y 10
