Is there a way to receive errorlevel?

Started by FUBARinSFO, March 08, 2008, 12:15:24 AM

Previous topic - Next topic

FUBARinSFO

Hi again:

Evidently TrID doesn't report out errorlevel when it exits.  (errorlevel is always zero irrespective of the detection result).  Therefore it is not very useful in a command file without examining and parsing the output of each detection. 

What would be helpful, at the minimum, if it reported errorlevel not zero when it comes up with an "unknown" file.  It that way a whole drive can be searched for potentially mangled file candidates.

Hope this is helpful.

-- Roy Zider


Mark0

TrID return an 1 as the ERRORLEVEL if some errors happens: like some needed parameter not specified, the file to analyze not found, if it can't be opened, etc.
I felt that using it with regard to the analysis results would have been too limited to be useful.

Bye!

FUBARinSFO

Well, as I noted above I've got one application where an errorlevel >0 would help me identify lost/mangled files.

Thaks for the prompt reply.

-- Roy Zider

Mark0

I see. Maybe I can add a different ERRORLEVEL to report that too.
I will keep that in consideration for a next version of TrID.

Thanks for the suggestion,
Bye!

lazna

Missing this feature too. If trid was not done filetype identification (maybe because file is textual), set errorlevel to some specified value, and MENT THIS IN DOCUMENTATION please...

thanks