noodles101
Goto Top

Problem: FOR-Schleife bricht einfach ab

In meiner Batchdatei ist eine For-Schleife. Alles was danach kommt wird nicht mehr ausgeführt.

In meiner Batchdatei ist eine For-Schleife. Alles was danach kommt wird nicht mehr ausgeführt. Warum?

Hier ist die For-Schleife.

for %%f in (*.inc) do if /i not %%~nf == %USER_CONFIG% ma2.bat %MK166% %%~nf %USER_CONFIG%

Besten Dank für Eure Hilfen.

Content-Key: 42382

Url: https://administrator.de/contentid/42382

Printed on: April 25, 2024 at 23:04 o'clock

Member: AxelHahn
AxelHahn Oct 17, 2006 at 12:12:43 (UTC)
Goto Top
Hallo,

nur mal als Vermutung: ist in der ma2.bat ein "exit" ??
Wenn ja, entfernen - notfalls mit einem goto zu einem Label am Ende der ma2.bat.

Viele Grüsse
-= Axel =-
Member: bastla
bastla Oct 17, 2006 at 12:28:21 (UTC)
Goto Top
Hallo noodles101!

Sollte das nicht eher call ma2.bat heißen?

HTH
bastla
Member: noodles101
noodles101 Oct 17, 2006 at 14:02:27 (UTC)
Goto Top
nein es ist kein "exit" in der anderen Batchdatei.
Member: noodles101
noodles101 Oct 17, 2006 at 14:02:55 (UTC)
Goto Top
das wars wohl.. vielen Dank für den Tip.