小编ith*_*yme的帖子

避免写入输出中的换行符

我想从日志文件中收集脚本的所有输出,并且必须使用write-output instaed of write-host.

Write-Output "Server:" $a 好像

Server:
foo
.

我是否真的必须写信
write-output $("sfdghk:" + $a)才能获得Server:Foo

谢谢-jt

powershell

16
推荐指数
4
解决办法
3万
查看次数

标签 统计

powershell ×1