From f8657dd8224fed60b222e287a648a5a3f19b97d6 Mon Sep 17 00:00:00 2001 From: Frederik Hjorslev Poulsen Date: Sat, 4 Apr 2020 14:19:36 +0200 Subject: [PATCH] fix #10 -- not saving to specified path --- src/Public/Get-UrlScanioScreenshot.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Public/Get-UrlScanioScreenshot.ps1 b/src/Public/Get-UrlScanioScreenshot.ps1 index 6ee38a8..3144d2b 100644 --- a/src/Public/Get-UrlScanioScreenshot.ps1 +++ b/src/Public/Get-UrlScanioScreenshot.ps1 @@ -37,7 +37,7 @@ Saves screenshot of specified id as C:\temp\b14db0aa-013c-4aa9-ad5a-ec947a2278c7 if (Test-Path $Path -PathType Container) { try { - Invoke-WebRequest " https://urlscan.io/screenshots/$id.png" -OutFile "$id.png" -UseBasicParsing + Invoke-WebRequest " https://urlscan.io/screenshots/$id.png" -OutFile "$($Path)\$id.png" -UseBasicParsing Write-Verbose "Screenshot saved to $Path\$id.png" } catch { $_.Exception.Message