adamchilcott

downloadWithName.ps1

Mar 4th, 2018
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function DownloadFileFrom($link) {
  2.   $filename = [System.IO.Path]::GetFileName($link)
  3.   $wc = New-Object System.Net.WebClient
  4.   $wc.DownloadFile($link, $filename)
  5. }
Add Comment
Please, Sign In to add comment