From: Martin DeMello Date: 2005-06-02T16:00:23+09:00 Subject: Re: Document identification Martin DeMello wrote: > M. Eteum wrote: > > > > Super! Oh by the way, do you know if Perl or Python has it? I'm quite > > desperate to find the solution, therefore I'll take any solution while > > waiting for the Ruby modules. > > Your best bet would be to find a windows port of unix's 'file' (Mac OSX > is definitely bound to have it). Sadly, it's a very hard thing to google > for :) You're in luck - gnuwin32 includes a port of file. http://gnuwin32.sourceforge.net/summary.html All you need to do is a = `file.exe #{filename}` martin