I am using the PowerShell Community Extensions (PSCX), but one one particular job we are having to zip up several files before transmitting to our hosted server.
using: Write-Zip -IncludeEmptyDirectories -OutputPath $outputZip -Path $currentLocalPath
generates a progress bar that floats over the command console lines for each zip generated (in this particular job 61), and hides the messages being logged to screen behind.
I have tried:
Write-Progress "Done" "Done" -completed
but that does not clear the progress bar of the zip process.
We do log to a file so there is no issue of missing anything, I was hoping for an option that would tidy up Write-Zip after each progress without losing and feedback details on the screen.
-Quiet
is the only option I can see that will stop this behaviour, but then the user would be wondering what is going on until each file completes.