![]() ![]() ![]() The file with URLs is filelist.txt and IWR is the PS near equivalent of wget. Windows 7 has a FTP command, but that can often throw up a firewall dialog requiring a User Authorization response.Ĭurrently running Windows 7 and wanting to download a list of URLs without downloading any wget.exe or other dependency like curl.exe (which would be simplest as the first command) the shortest compatible way is a power-shell command (not my favorite for speed, but if needs must.) So in my system I simply type and enter Do GetFileList and all those stored URLs are downloaded, where Do is an old DO'S trick to keep many small commands in one self editing zip file but nowadays I use CMD where Do Edit calls it up as Notepad "%~f0" to paste a section like this.įor /F "eol= " %%f in (filelist.txt) do curl -O %%f If using above in a batch file GetFileList.cmd then double those %%'s Note the inclusion of eol= allows us to mask individual exclusions by adding at the start of those lines in filelist.txt that we do not want this time. ![]() On Windows 10/11 this is fairly trivial using for /F "eol= " %f in (filelist.txt) do curl -O %f ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |