Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Batch file 从unrr.exe到文本文件的日志输出(批处理脚本)_Batch File_Unrar - Fatal编程技术网

Batch file 从unrr.exe到文本文件的日志输出(批处理脚本)

Batch file 从unrr.exe到文本文件的日志输出(批处理脚本),batch-file,unrar,Batch File,Unrar,我正在编写一个批处理脚本,提取下载的torrents,现在希望将unrr.exe的输出记录到一个文本文件中。我心目中的输出是由于损坏的档案等导致的失败,或者仅仅是操作成功 有没有办法解决这个问题 提前谢谢 您使用重定向: unrar > logfile.txt 要同时重定向stderr,请执行以下操作: unrar > logfile.txt 2>&1 您可以使用重定向: unrar > logfile.txt 要同时重定向stderr,请执行以下操作: u

我正在编写一个批处理脚本,提取下载的torrents,现在希望将unrr.exe的输出记录到一个文本文件中。我心目中的输出是由于损坏的档案等导致的失败,或者仅仅是操作成功

有没有办法解决这个问题

提前谢谢

您使用重定向:

unrar > logfile.txt
要同时重定向stderr,请执行以下操作:

unrar > logfile.txt 2>&1
您可以使用重定向:

unrar > logfile.txt
要同时重定向stderr,请执行以下操作:

unrar > logfile.txt 2>&1
只是个傻瓜

unrr>“output.txt”

只有错误(ERROUT)

unrar 2>“errors.txt”

标准和错误

unrar 2>&1“both.txt”

或在单独的文件中同时使用:

unrar2>“errors.txt”>“output.txt”

只是标准输出

unrr>“output.txt”

只有错误(ERROUT)

unrar 2>“errors.txt”

标准和错误

unrar 2>&1“both.txt”

或在单独的文件中同时使用:


unrar2>“errors.txt”>“output.txt”

Thx!我得到了一个空的文本文件,虽然=(我认为是因为START命令。我的坏!Thx!我得到了一个空的文本文件,虽然=(我认为是因为START命令。我的坏!