You are on page 1of 1

powershell -command "& { iwr url/FileName.Extension -OutFile FileName.

Extension }"

powershell -command "& { iwr https://i.imgur.com/S7UvqM3.jpg -OutFile


fuckinNewImage.jpg }"

$client = new-object System.Net.WebClient


$client.DownloadFile("https://i.imgur.com/S7UvqM3.jpg","C:\fuckinNewImage.jpg")

$url = "https://i.imgur.com/S7UvqM3.jpg"
$path = "C:\fuckinNewImage.jpg"
# param([string]$url, [string]$path)

if(!(Split-Path -parent $path) -or !(Test-Path -pathType Container (Split-Path


-parent $path))) {
$targetFile = Join-Path $pwd (Split-Path -leaf $path)
}

(New-Object Net.WebClient).DownloadFile($url, $path)


$path

You might also like