@SET IP_LOCAL=192.168.0.100
@SET IP_REMOTE=192.168.0.101
@echo off
:
if (%IP_LOCAL%)==() goto SKIP_IP_LOCAL
  @SET FILE_OUT=stat_%IP_LOCAL%.csv
  attrib -R %FILE_OUT%
  del /Q %FILE_OUT%
  @echo Read %FILE_OUT% ...
  tftp -i %IP_LOCAL% get stat.csv %FILE_OUT%
:SKIP_IP_LOCAL
:
if (%IP_REMOTE%)==() goto SKIP_IP_REMOTE
  @SET FILE_OUT=stat_%REMOTE%.csv
  attrib -R %FILE_OUT%
  del /Q %FILE_OUT%
  @echo Read %FILE_OUT% ...
  tftp -i %IP_REMOTE% get stat.csv %FILE_OUT%
:SKIP_IP_REMOTE
:  
pause