amiga-whdload-game-scripts
amiga-whdload-game-scripts copied to clipboard
Change to download_whdownload_games.ps1 needed - webclient.download throws exception
Line 93 of download_whdownload_games.ps1:
$webclient.DownloadFile($whdownloadGameUrl, $whdloadGameFile)
Throws and exception due to webclient not accepting path as part of the second parameter (it appears this was tightened up in the latest versions of .net).
To get around this, I changed line 93 to:
Invoke-Webrequest -Uri $whdownloadGameUrl -OutFile $whdloadGameFile
And that seems to work correctly.
This may be an issue in other scripts in your repo. (Thanks for writing these - they are very useful).
Thanks for the tip. I will update the scripts to use the powershell command Invoke-Webrequest