RE: Logging output of command.com

2003-10-12 Thread Krummel, James C - PGGC-6
Michael, Microsoft's new Windows Scripting Host 5.6 allows you create a session and capture the STDOUT and STDERR, as well as write to STDIN. James use Win32::OLE; $objShell = Win32::OLE->new("WScript.Shell"); # // Generates 'Could Not Find...' on STDERR $objExec = $objShell->Exec("CMD /c DEL

Re: Logging output of command.com

2003-10-10 Thread Greg Matheson
On Thu, 09 Oct 2003, Sui Ming Louie wrote: > One can use >> to append to a log file. A single redirect (>) creates a new > file. If the file already exists, the previous contents will be lost. That only redirects STDOUT. How do you also redirect STDERR? The Unix dmake test > log.txt 2>&