http://blog.kumacchi.com/2007/07/msdos.html (program.exe 2>&1) > hogehoge.txt または program.exe > hogehoge.txt 2>&1 {{category2 OS,Windows,コマンドプロンプト}}