Bonjour,

ni echo, ni pause ne fonctionne

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
for /f "TOKENS=1" %%i in ('"wmic Process where (Name="cmd.exe") GET processid | findstr [0-9]"') do call :concat %%i
goto :eof
:concat
set str=%str%,%1
goto :eof
@echo myPid%str%
pause
merci de votre aide