Skip to content

Instantly share code, notes, and snippets.

@myfonj
Created November 25, 2018 19:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save myfonj/ee82a383e8452dfb211fd46f2d1bab78 to your computer and use it in GitHub Desktop.
Save myfonj/ee82a383e8452dfb211fd46f2d1bab78 to your computer and use it in GitHub Desktop.
ezwinports bulk download and extract
// prereqs: modern browser, wget, 7zip, text editor
// navigate to:
https://sourceforge.net/projects/ezwinports/files/
// press:
ctrl+shift+k
// type/paste, enter
copy($$('[href$="-bin.zip/download"],[href$="README.txt/download"]').map(e=>e.href).join('\n'))
// paste into file
ezwinports.txt
// sort lines
// search for duplicate entries (multiline,regex)
(https://sourceforge.net/projects/ezwinports/files/[^-]+)-.+\n(\1.+\n)+
// delete unwanted
wget --continue --content-disposition --trust-server-names -i ezwinports.txt
for %i in (*.zip) do c:\apps\7-Zip\7z.exe x %i -oc:\path\to\ezwinports -aoa
// set %path%=c:\path\to\ezwinports\bin;%path%
// thanks for pointers: https://gujiaxi.com/2015/12/10/ezwinports-on-windows.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment