This should work in W2K/XP (you didn't tell us what OS you're using).

At command prompt:
C:\> for /f "usebackq" %i in (`type ip_list.txt`) do @your_batch_file %i

In another batch file:
for /f...