http://www.perlmonks.org?node_id=389241


in reply to tree backup script - file type problem

A1 File::MimeInfo::Magic does what you want and works on Win32.

cheers

tachyon