【发布时间】:2016-01-25 20:07:14
【问题描述】:
我想将它放在控制台上的语句重定向到 Windows 批处理代码中的文件中。我正在使用 net stop 命令停止服务。
当我这样做时:
net stop SPTimerV4 2>> mylog.log
它将错误文本附加到文件中。但它仍然在控制台上打印常规文本:
The SharePoint 2010 Timer service is stopping.
The SharePoint 2010 Timer service was stopped successfully.
我怎样才能将它重定向到一个文件?
谢谢
【问题讨论】:
标签: windows batch-file