:: Drop a text file list of URLs on this batch file. It will read the list :: and create URL files (internet shortcut files) for each list entry :: Test for file if not exist %1 then goto ERR goto PROC :ERR echo %1 is not a file! pause goto :EOF :PROC :: 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