Indent Start-Download progress output

Torsten's Avatar

Torsten

01 Mar, 2017 04:59 PM

I'm using Start-Download in a powershell script. Is it possible to indent the progress output (for example 4 spaces)? I'm not familar with powershell, maybe i missed an easy way.

TIA, Torsten

  1. 1 Posted by Ilya Finkelshte... on 02 Mar, 2017 02:30 AM

    Ilya Finkelshteyn's Avatar

    Hi Torsten,

    Seems like no easy way here (if you are askking about Start-FileDownload command). It uses PSHostUserInterface.Write method (https://msdn.microsoft.com/en-us/library/system.management.automati...) internally and I do not see a way to insert indentation without modifying PowerShell function itself. How terrible you need it? ;)

    Ilya.

  2. 2 Posted by Torsten on 04 Mar, 2017 10:02 AM

    Torsten's Avatar

    Hello Ilya,

    Thanks for your answer. It would make the output look it bit cleaner. So it's just a cosmetic thing, not really nesseccary, but nice to have. :)

  3. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:15 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac