in reply to tree backup script - file type problem
A1 File::MimeInfo::Magic does what you want and works on Win32.
cheers
tachyon