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

[New Feature]: Download progress #120

Open
OfficialEsco opened this issue Nov 22, 2021 · 3 comments
Open

[New Feature]: Download progress #120

OfficialEsco opened this issue Nov 22, 2021 · 3 comments

Comments

@OfficialEsco
Copy link
Collaborator

Description of the new feature/enhancement

I'd like a download progressbar when downloading the file, AFAIK this is possible, not sure if it could show download speed or size, but thats not too important, just want to see if its frozen or REALLY slow..

Also, the download time taken seems to be incorrect..

Proposed technical implementation details (optional)

https://stackoverflow.com/questions/21422364/is-there-any-way-to-monitor-the-progress-of-a-download-using-a-webclient-object

https://docs.microsoft.com/en-us/dotnet/api/system.net.webclient.downloadprogresschanged?view=net-6.0

@Trenly
Copy link
Owner

Trenly commented Nov 22, 2021

https://stackoverflow.com/questions/21422364/is-there-any-way-to-monitor-the-progress-of-a-download-using-a-webclient-object

I've tried this in the past and it isn't as clean as just the webclient download

https://docs.microsoft.com/en-us/dotnet/api/system.net.webclient.downloadprogresschanged?view=net-6.0

This will probably work, but I may have to embed some C# in the powershell file. I'd like to keep it raw powershell, but I think that a progress indicator is important enough that if I have to embed C# I will

@SpecterShell
Copy link

@SpecterShell
Copy link

BTW you need to detect whether the stdout is redirected, otherwise the output from the automation will be polluted.
[console]::IsOutputRedirected

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

No branches or pull requests

3 participants