use PowerShell to render CSV data to text field so that its formatted like a spreadsheet

Viewed 25

Is there a cmdlet | method in PowerShell that would allow the creation of text formatting so that CSV data looks like a spreadsheet (with rows and columns) inside the console?

An example of what I am looking for is found in this answer. https://stackoverflow.com/a/15261816/1870833

+-------------------------------+----------------+------------------------+-----------+
|             Name              |    Created     |        filePath        | Extension |
+-------------------------------+----------------+------------------------+-----------+
|         test2                 | 3/6/2013 19:21 | X:\Test\test2          | Folder    |
|         Results.csv           | 3/6/2013 19:51 | X:\Test\Results.csv    | .csv      |
|         test3                 | 3/6/2013 19:21 | X:\Test\test2\test3    | Folder    |
|         New Text Document.txt | 3/6/2013 19:21 | X:\Test\test2\New.txt  | .txt      |
+-------------------------------+----------------+------------------------+-----------+

I know that there is an Out-GridView cmdlet but it doesn't allow for copy and pasting of headers and parts of rows.

0 Answers
Related