How can I format the GCI output into columns?

Hi All,

I’m currently trying to format the output of Get-ChildItem using the -Name property into columns and I can’t seem to figure out how to achieve this.

File1.txt File2.txt
File3.txt File4.txt

The solution I came up for this was to instead of using gci to just manually print the files using Write-host and the horizontal tab special character `t but this can get overwhelming when dealing with a large number of files. Is it possible to achieve this with gci?

Thanks.

submitted by /u/0x00R3d
[link] [comments]

Leave a Reply