码迷,mamicode.com
首页 > 系统相关 > 详细

powershell输出错误信息到文件

时间:2017-09-27 19:09:25      阅读:175      评论:0      收藏:0      [点我收藏+]

标签:app   http   class   like   code   power   int   error   lan   

https://stackoverflow.com/questions/8925323/redirection-of-standard-and-error-output-appending-to-the-same-log-file

 

The second way would look like this:

& myjob.bat 2>&1 >> C:\MyLog.txt

Or this:

& myjob.bat 2>&1 | Out-File C:\MyLog.txt -Append

powershell输出错误信息到文件

标签:app   http   class   like   code   power   int   error   lan   

原文地址:http://www.cnblogs.com/chucklu/p/7602885.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!