Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change to download_whdownload_games.ps1 needed - webclient.download throws exception #1

Open
egnichtel opened this issue May 1, 2019 · 1 comment
Assignees
Labels

Comments

@egnichtel
Copy link

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).

@henrikstengaard
Copy link
Owner

Thanks for the tip. I will update the scripts to use the powershell command Invoke-Webrequest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants