Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 8583

Write log to csv file

$
0
0

Hi,

In my script I try to write logs to a file. I use something like this in the processing loop:

$sReport += "$fromValue,$toValue,$result`r`n"

At the end, I do:

$sReport | out-file "Report.csv"

But when I open the file in Excel, all content are in 1 column, instead of 3. Could you help?

Thanks,

Yong


Viewing all articles
Browse latest Browse all 8583

Latest Images

Trending Articles



Latest Images