@echo off for /f "tokens=1* delims=*" %%a in (FILE.TXT) do ( >"%%a.url" echo [InternetShortcut] >>"%%a.url" echo URL=%%b )