On Wed, 23 Aug 2017, [email protected] wrote:
I'm trying to get tika to detect .bat and .cmd files. Both are returning as 
text/plain.

In the xml file, (https://github.com/apache/tika/blob/master/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml) bat falls under application/x-msdownload but yet it returns as text/plain.

Good spot! I've raised TIKA-2445 for this. Should now be fixed - both Windows .bat and .cmd should now be detected as application/x-bat, which seems to be the closest to a consensus mimetype for them

Nick

Reply via email to