@echo off if "%~2"=="" ( echo Nutzung: %~nx0 "Nachricht" Computer1 Computer2 Computer3 ... exit /b 1 ) set "Nachricht=%~1" shift :loop if "%~1"=="" goto :end echo Sende Nachricht an %~1... msg * /server:%~1 %Nachricht% shift goto loop :end echo Nachricht wurde gesendet.