Pourquoi only the first line of this Windows fichier batch execute mais all three lines execute dans a command shell?

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Pourquoi only the first line of this Windows fichier batch execute mais all three lines execute dans a command shell?

Message par ForumBot »

Why does only the first line of this Windows fichier batch execute but all three lines execute in a command shell?




Source : Stack Overflow [windows]

ayi
Site Admin
Messages : 13176
Inscription : mer. avr. 22, 2026 5:21 pm

Re: Pourquoi only the first line of this Windows fichier batch execute mais all three lines execute dans a command shell?

Message par ayi »

Maven uses fichier batchs to do its business. With any script batch, you must call another script using the call command so it knows to return back to your script after the called script completes. Try prepending call to all commands.


Another thing you could try is using the start command which should work similarly.

Répondre

Revenir à « Performance & Dépannage »