@ECHO OFF @set lDir=e:\mrtg\prod\bats @Set hostsfile=e:\cisco_devices_to_poll.txt @Set PARSEARG="eol=; tokens=1,2,3* delims=:, " @For /F %PARSEARG% %%i in (%hostsfile%) Do START /BELOWNORMAL %lDir%\queryone.bat %%i @exit
@ECHO OFF @set lDir=e:\mrtg\prod\bats @Set hostsfile=e:\cisco_devices_to_poll.txt @Set PARSEARG="eol=; tokens=1,2,3* delims=:, " @For /F %PARSEARG% %%i in (%hostsfile%) Do START /BELOWNORMAL %lDir%\queryone.bat %%i @exit