2011-09-26 65 views

回答

1

您使用重定向:

unrar > logfile.txt 

要还重定向标准错误:

unrar > logfile.txt 2>&1 
+0

THX!虽然=( – adamfinstorp

+0

)我得到了空文件,因为命令START我认为,我的糟糕! – adamfinstorp

0

就在STDOUT

unrar>"output.txt"

只有错误(ERROUT)

unrar 2>"errors.txt"

stdout和ERROUT

unrar 2>&1 "both.txt"

或两个单独的文件:

unrar 2>"errors.txt" >"output.txt"

相关问题