locked
Format-Table - can I widen the output? RRS feed

  • Question

  • Hi,

    Format-Table prints 1 space character between the columns. Sometimes this is too little, e. g. when displaying several datetime info. The output would be better readable if  ft  would print 2 spaces.

    I know I could use Format-Table with a hash table and WIDTH, but this is far too much to type.

    Any ideas? Is there a general variable that defines this?

    Thanks
    Walter 

    Thursday, November 14, 2019 6:34 PM

Answers

  • The simple answer is "no".  There is no option that can do this.


    \_(ツ)_/

    • Marked as answer by WalterFMB Friday, November 15, 2019 9:28 AM
    Thursday, November 14, 2019 7:05 PM

All replies

  • Here's a search:

    https://www.bing.com/search?q=powershell+customize+format+table


    -- Bill Stewart [Bill_Stewart]

    Thursday, November 14, 2019 6:41 PM
  • Hi Bill,

    indeed I have searched through the internet for hints, but didnt find any.

    What I would like to have is something similar to $OFS: Usually I'm fine with the default value of $OFS, but if I need a different separator for a special case, I can just redefine it.

    Usually I'm fine with the 1-space, but in special cases ...


    Thursday, November 14, 2019 6:56 PM
  • I refer the honorable gentleman to my first reply posted some 15 minutes ago.

    If you don't like that answer, then the other answer I can give you is "no."


    -- Bill Stewart [Bill_Stewart]

    Thursday, November 14, 2019 6:58 PM
  • The simple answer is "no".  There is no option that can do this.


    \_(ツ)_/

    • Marked as answer by WalterFMB Friday, November 15, 2019 9:28 AM
    Thursday, November 14, 2019 7:05 PM
  • I was afraid that this might be the answer ...

    Thanks

    Friday, November 15, 2019 9:27 AM