Page 1 of 1

How i redirect output to file? >piclog.txt not work..

Posted: Mon Jun 30, 2008 2:23 am
by Guest
nconvert -v -rmeta -rexifthumb -q 65 -ratio -text_flag center -text "text1" -text_back 0 255 255 -text_flag bottom-right -text "text2" pic\*.* >piclog.txt


How i redirect output to file? >piclog.txt not work..

Re: How i redirect output to file? >piclog.txt not work..

Posted: Mon Jun 30, 2008 6:14 am
by xnview
Do you have tried >1

Posted: Tue Jul 01, 2008 3:39 am
by Guest
you mean

1>

?

Posted: Tue Jul 01, 2008 6:30 am
by xnview
Anonymous wrote:you mean

1>

?
Yes sorry

Posted: Tue Jul 01, 2008 11:21 am
by Guest
i not understand this, but this syntax give windows batch automatically !!
(i use Win2K)

but some messages go to file and some messages (ADD TEXT etc.) go to console...

please try this...

Posted: Tue Jul 01, 2008 2:55 pm
by xnview
Sorry i don't understand???

Re: How i redirect output to file? >piclog.txt not work..

Posted: Mon Mar 30, 2020 11:30 pm
by Krzysiek
I was just looking for a solution to the same problem. And here's what I found.
Nconvert sends some information to stderr and others to stdout.
Normally only stdout can be redirected to a file.
All you need to do is redirect stderr to stdout and then everything can be redirected to a file.
To do this, add the characters "2>&1" at the very end of the command.
Cmd.exe will interpret these characters as a command to redirect stderr to stdout.
For example, using the command given at the beginning of this thread:

Code: Select all

nconvert -v -rmeta -rexifthumb -q 65 -ratio -text_flag center -text "text1" -text_back 0 255 255 -text_flag bottom-right -text "text2" pic\*.* >piclog.txt 2>&1