Created
December 31, 2019 21:37
-
-
Save jonasnordlund/46e743ec29a445900ae80e8e648fd744 to your computer and use it in GitHub Desktop.
Downloads a list of URI's.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Downloads a list of URI's as specified by a given text file to the current directory. | |
# Usage: .\Downlink.ps1 -Path TextFile.txt | |
param( | |
[String]$path | |
) | |
Get-Content $path | ForEach-Object { | |
Write-Output $_ | |
Invoke-WebRequest -Uri $_ -OutFile $(Split-Path -Path "$_" -Leaf) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment