@echo off
if {%1}=={} (echo usage: sndmsgl "text" user-list.txt) & (goto :EOF)
if {%2}=={} (echo usage: sndmsgl "text" user-list.txt) & (goto :EOF)
if not exist %2 (echo %2 not found) & (goto :EOF)
for /f "eol=; Tokens=*" %%i in (%2) do net send %%i %1
:EOF