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

最新文章

  1. ASP.NET Core Kestrel 中使用 HTTPS (SSL)
  2. STM32CubeMX安装指南
  3. Apache Shiro系列之五,概述 —— 配置
  4. C# 编程实现非自相交多边形质心
  5. 根据版本的不同整理所有的绿色SQL Server
  6. shell条件测试
  7. MySql存储过程—3、变量
  8. UESTC_One Step Two Steps CDOJ 1027
  9. [Linked List]Reverse Linked List,Reverse Linked List II
  10. PHP查看在线服务器与本地服务器支持函数差别
  11. sublime text全程指南【转载】
  12. datable转xml
  13. binlog——逻辑复制的基础
  14. Mybaits-plus实战(三)
  15. node03
  16. java枚举变量反解析用法
  17. js计算总页数
  18. java正则表达式中的POSIX 字符类和Unicode 块和类别的类介绍
  19. RHEL yum
  20. 【转】每天一个linux命令(14):head 命令

热门文章

  1. jquery-通过下拉菜单更改input日期
  2. WinServer-IIS-压缩及缓存
  3. java.util.UnknownFormatConversionException: Conversion = ''';
  4. RT-Thread开篇
  5. 【LeetCode-面试算法经典-Java实现】【058-Length of Last Word (最后一个单词的长度)】
  6. correct ways to define variables in python
  7. RBAC介绍
  8. Android 度量单位
  9. MySQL学习(一)——启动和登录MySql遇到的问题及解决
  10. SpringCloud学习笔记(6)----Spring Cloud Netflix之负载均衡-Ribbon的使用