【发布时间】:2015-10-16 04:40:38
【问题描述】:
从 powershell 控制台运行 powershell 脚本时,我可以将输出重定向到如下文件:
powershell script.ps1 > file.txt
但是,我需要将输出重定向到文件并仍将其打印到屏幕上。我该怎么做?
【问题讨论】:
-
查看 Tee-Object cmdlet,看看它是否能让您朝着正确的方向前进。
标签: powershell stdout io-redirection