Is there any way to suppress errors?

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: helmut, XnTriq, xnview

Post Reply
Andys
Posts: 13
Joined: Wed Jun 04, 2008 7:14 am

Is there any way to suppress errors?

Post by Andys »

Seems like -quiet switch doesn't suppress error output. I still get " Error: Can't create file (...)" errors on screen. >nul doesn't work either.
Anyone know some way I could hide errors? I use batch file with simple errorlevel checks and the users should see only "<file> - OK" or "<file> - error".
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Is there any way to suppress errors?

Post by xnview »

Messages such " Error: Can't create file (...)" are written on stderr
Pierre.
Andys
Posts: 13
Joined: Wed Jun 04, 2008 7:14 am

Re: Is there any way to suppress errors?

Post by Andys »

That helped ^_^. It's much easier when you know what to search for.
Command string should be nconvert ... ... ... >>logfile.txt 2>>errorlogfile.txt
I never know that windows had more than one output pipe just like linux...
Post Reply