Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Avoid newline without write-host

$
0
0

Hi, Developer,

How to avoid newline without write-host in script as below?

........ | ForEach {  $_.value+"," } | Out-File -FilePath done.csv -Encoding OEM

Or

........ | ForEach { "$_.," } | Out-File -FilePath done.csv -Encoding OEM

Thanks


Viewing all articles
Browse latest Browse all 21975

Trending Articles