:: Make files for /f "tokens=2 delims=/" %%x in ('type "%1"') do echo [InternetShortcut]>%%x.url :: Append URL for /f "tokens=2* delims=/" %%x in ('type "%1"') do echo URL=http://%%x/%%y>>%%x.url