@SET FILE=%1
:
@if (%FILE%)==() goto ERR
@if (%2)==() goto ERR
 @SET IP_N1=%2
 @echo ****** Put file "%FILE%" to %IP_N1%
 TFTP          -i %IP_N1% PUT        %FILE% %FILE%
 @if (%3)==() goto SKIP2
  @SET IP_N2=%3
  @echo ****** Put file "%FILE%" to %IP_N2%
  TFTP          -i %IP_N2% PUT        %FILE% %FILE%
:SKIP2
@echo -----------------------------------
@goto DONE
:ERR
@echo ERROR: Invalid papamerers: <filename> <IP1> [<IP2>]
@goto DOPAUSE
:DONE
@echo -
@if (%NO_PAUSE%)==() goto DOPAUSE
@goto EXIT
:DOPAUSE
@pause
:EXIT
