Powershell add-content line breaks

后端 未结 3 351
死守一世寂寞
死守一世寂寞 2021-01-18 01:53

I am trying to figure out how to eliminate line breaks when using add-content

echo $server \"Uptime: \" $uptime.days \", Days\" $uptime.hours \", Hours\" $up         


        
3条回答
  •  孤城傲影
    2021-01-18 02:36

    how about

    [IO.File]::AppendAllText($testfile,"abc",[System.Text.Encoding]::UTF8)
    

提交回复
热议问题