4 réponses
dubcek
Messages postés
18718
Date d'inscription
lundi 15 janvier 2007
Statut
Contributeur
Dernière intervention
22 mars 2024
5 615
15 févr. 2012 à 15:46
15 févr. 2012 à 15:46
hello
comme ça
comme ça
C:> set A=moi C:> set A=%A% toi C:> echo %A% moi toi C:> set B=nous C:> set A=%A% %B% C:> echo %A% moi toi nous
dubcek
Messages postés
18718
Date d'inscription
lundi 15 janvier 2007
Statut
Contributeur
Dernière intervention
22 mars 2024
5 615
15 févr. 2012 à 16:03
15 févr. 2012 à 16:03
non, on peut faire:
C:> type aa.bat @echo off setlocal enableDelayedExpansion set A= for %%b in (moi toi nous) do ( set A=!A! %%b echo !A! ) C:> aa moi moi toi moi toi nous C:>