Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Thursday, September 21, 2017 9:12 AM
Hi,
I am just learning PS, issue I am facing is -- after running PS command whatever the output I am receiving is bit scattered -- how do I compact it
sharing screenshot for better under understanding
I tried | FT and | format-table switches
TheAtulA
All replies (2)
Thursday, September 21, 2017 9:15 AM âś…Answered | 1 vote
Hi Atula,
welcome to Powershell :)
To reduce the gap between displayed columns (which is not output, something you will keep stumbling over at the beginning) you can use to -AutoSize parameter:
dir | ft -AutoSize
Cheers,
Fred
There's no place like 127.0.0.1
Thursday, September 21, 2017 9:34 AM
Thanks Fred,
for your help
| FT -AutoSize worked for me
TheAtulA