Hi.  U should check out the `file` utility provided by Cygwin.

D:\GE>file -pk TNAdoc_draft1.doc
TNAdoc_draft1.doc: Microsoft Office Document


At 12:39 AM 7/16/2009 -0700, imagine2200 wrote:
>Hej everyone,
>
>       I want to know if their is any way in perl
>to differentiate Microsoft Office files from other files. For example,
>the program should receive a file as input and should print whether
>this is MS office file or not?
>
>
>Can someone kindly help me in this regard?




--
REMEMBER THE WORLD TRADE CENTER         ---=< WTC 911 >=--
"...ne cede malis"

00000100

_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to