MSFN Forum: Batch to Log & Console - MSFN Forum

Jump to content


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Batch to Log & Console at the same time Rate Topic: -----

#21 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,363
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 19 March 2013 - 04:41 AM

If you are installing software/applications you cannot expect that each developers installer will have built in an error logging procedure which can be output through a command line interface.

For instance, Windows Installer uses the /L switch for logging to a file.

In some cases, you may be better advised outputting all to a log file then displaying that output to the console.

Also if it is only the error stream you are interested in have you tried changing the tee.vbs to read:
set con = createobject("scripting.filesystemobject").opentextfile("con:", 2)
do until wsh.stdin.atendofstream
        s = wsh.stdin.readline
        wsh.stderr.writeline s : con.writeline s
loop



Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy