19 lines
298 B
Batchfile
19 lines
298 B
Batchfile
@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.
|