Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Powershell out-file csv to columns

$
0
0

Is there a way to use the out-file command and load data into a csv file so when opened into excel it shows data in multiple colums.

 

Example. Loop with three variables($a, $b, and $c). each time through the loop, the variables are loaded with different data. at the end of each loop, there is an out-file (with append) command that writes to a CSV and puts $a in column A, $b in column b, and $c in column c.

 

Is this possible?


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>