There is a file utility in linux.
The users can get file format information by file.

I'd like to use this program in my application.
Is there a Windows utility? Open source is better.

link|improve this question

feedback

migrated from stackoverflow.com Jun 22 '11 at 14:22

This question came from our site for professional and enthusiast programmers.

3 Answers

up vote 3 down vote accepted

File has been ported to Windows:

http://gnuwin32.sourceforge.net/packages/file.htm

link|improve this answer
feedback

trid might be a possibility - its used in computer forensics to identify files. Unlike file, it uses a database, rather than magic numbers

link|improve this answer
feedback

Check sysinternals, it is bound to have one that suits your needs. It's not open source, though.

link|improve this answer
1  
I don't recall any file identification tools in the sysinternals family – Journeyman Geek Jun 22 '11 at 15:11
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.