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. Support Staff 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. :)

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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