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

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 6937

Trending Articles