CODE: [Copy to clipboard]@echo off for /f "delims=. tokens=1,2" %%a in (IPList.txt) do ( >>IPList_new.txt echo %%a.%%b.0.0 %%a.%%b.255.255 )