Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question

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

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

3 Answers 3

up vote 3 down vote accepted

File has been ported to Windows:

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

share|improve this answer

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

share|improve this answer

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

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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