Skip to content

Instantly share code, notes, and snippets.

@mombrea
Created April 19, 2017 14:18
Show Gist options
  • Save mombrea/f4925cce21671fd49e7d1ada7a3f6c7e to your computer and use it in GitHub Desktop.
Save mombrea/f4925cce21671fd49e7d1ada7a3f6c7e to your computer and use it in GitHub Desktop.
Powershell script to wget images from CSV
$content = Get-Content 'C:\img_urls.csv'
$outpath = 'C:\OutFolder'
foreach ($line in $content)
{
wget $line -outfile $outpath$line.Substring($line.LastIndexOf("/") + 1)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment