How do I output text without a newline in PowerShell?

前端 未结 17 2329
独厮守ぢ
独厮守ぢ 2020-12-07 15:13

I want my PowerShell script to print something like this:

Enabling feature XYZ......Done

The script looks something like this:



        
17条回答
  •  长情又很酷
    2020-12-07 16:01

    A simplification to FrinkTheBrave's response:

    [System.IO.File]::WriteAllText("c:\temp\myFile.txt", $myContent)
    

提交回复
热议问题