C:\Documents and Settings\moi\Bureau>for /F "TOKENS=1" %i in ('"wmic Proc
ess where (Name="cmd.exe") GET processid | findstr [0-9]"') do call :concat %i
C:\Documents and Settings\moi\Bureau>call :concat 2696
C:\Documents and Settings\moi\Bureau>set str=,2696
myPid,2696
C:\Documents and Settings\moi\Bureau>pause
Appuyez sur une touche pour continuer...
C:\Documents and Settings\moi\Bureau>call :concat 1352
C:\Documents and Settings\moi\Bureau>set str=,2696,1352
myPid,2696,1352
C:\Documents and Settings\moi\Bureau>pause
Appuyez sur une touche pour continuer...
C:\Documents and Settings\moi\Bureau>goto :fin
myPid,2696,1352
C:\Documents and Settings\moi\Bureau>pause
Appuyez sur une touche pour continuer...
Partager