Display Download progress in Progressbar

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 6 years and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
kilo1548
Posts: 15
Last visit: Tue Oct 18, 2022 2:23 pm

Display Download progress in Progressbar

Post by kilo1548 »

Is there a way to have the Progress bar that is displayed when using Invoke-WebRequest push its data to a progressbaroverlay and have that automatically update?
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Display Download progress in Progressbar

Post by jvierra »

The progress bar is automatic on CmdLets that support it.

See: help about_Preference_Variables
Alcha212
Posts: 9
Last visit: Fri Jan 25, 2019 6:52 pm

Re: Display Download progress in Progressbar

Post by Alcha212 »

As far as I know, you can't actually forward the output from the progress bar.

However, if you look up the $ProgressPreference variable in about_Preference_Variables as jvierra mentioned you can use it to silence the PowerShell progress bar and display your own using the ProgressBarOverlay.
This topic is 6 years and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked