ProgressBar not working?
Posted: Tue Jun 12, 2012 7:43 am
Today I went to run a script I wrote a while back. This is a non-form script but it uses the Write-Progress commands to display a progress bar.
Running this from PowerGUI displays the progress bar just as I would expect (the forms progress bar - not the console version). If I run the same script from PowerShell Studio, the progress bar never gets displayed (although the script is running as expected).
To test this further, I created a blank script in PowerShell studio and put in a few Write-Progress lines with a few seconds of sleep between each command and I still never saw the progress bar. Ideas?
Running this from PowerGUI displays the progress bar just as I would expect (the forms progress bar - not the console version). If I run the same script from PowerShell Studio, the progress bar never gets displayed (although the script is running as expected).
To test this further, I created a blank script in PowerShell studio and put in a few Write-Progress lines with a few seconds of sleep between each command and I still never saw the progress bar. Ideas?