1: 2: 3: 4: 5:
@echo off for /f %%a in (MachineList.txt) do ( echo Sending to %%a ... msg.exe /server:%%a * %* )