setlocal enableDelayedExpansion set serv=%1 echo serveur : %serv% echo -----
for /f "tokens=* delims=" %%j in (\\PFILE\Batch_win\Citrix_List_services.txt) do ( echo service : %%j sc \\!serv! query "%%j" | find "STOPPED" if !errorlevel! equ 0 sc \\!serv! start "%%j" sc \\!serv! query "%%j"
\\PFILE\Batch_win\Citrix_List_services.txt
Zabbix Agent