23 November 2006

Windows CMD Redirect Error And Standard Stream To File

To redirect error and standard stream of a program to a file, use the following in Windows cmd shell: prog args > file.log 2>&1.