Re: Determining MS Office docs



Hi David,
Thanks a alot...I truly appreciate for taking time in replying. I
found Antiword & word2x sources and trying to find out how they are
making sure they are docs.

I agree with ur comments.

Prasad

David wrote:
> On Thu, 7 Apr 2005 06:36:59 UTC, vpnprasad@xxxxxxxxx wrote:
>
> > Hi,
> > If we have a file, can we look into the content of that file
and
> > say whether its a MS word doc or excel or ppt. I dont want to trust
the
> > extention and want to check if they really are the MS office docs.
> > Do these file types(.doc, .ppt, .xls) have some kind of header
> > where I can read and find out what they are? Or if there is some
other
> > way of finding out pls let me know.
> >
> > I appreciate the help.
> >
> > Regards,
> > Prasad
>
> Hello Prasad,
>
> I'm sure there is. I just can't point you to any recent
documentation
> on the subject. I've seen a few utilities for .doc files that can
> verify the application that created it and identify the version of
> the file format.
>
> I've always wondered why Microsoft chose such an aweful (IMO)
method of
> associating file extensions to applications. While it is helpful to
have
> these associations, it is also very nice to be able to verify or
enforce
> such an association if that ws the intention. The .doc extension has
> been used by many programs over the years. I think it is rather
> monopolistic that the Windows operating systems should prescribe one
> and only one application to a given extension. Why not allow the
> user to generate multiple associations? We might prefer a simple
> .txt file reader for one file and a different application under other
> circumstances. Even under Windows there are many file extensions
that
> have many applications and different formats for the same file
extension.
> It would have been nice if Microsoft had kept that ability in their
> operating systems.
>
> David

.



Relevant Pages

  • Re: Determining MS Office docs
    ... >>> Prasad ... >> monopolistic that the Windows operating systems should prescribe one ... >> and only one application to a given extension. ... >> user to generate multiple associations? ...
    (comp.programming)
  • Re: exe files willnot run
    ... David H. Lipman wrote: ... > | It is as if "exe" extension is not recognized by the OS. ... Install is not one of the options when I right click..only cut, copy, ... Chris ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Validity period of certificates is not accepted anymore
    ... uses that extension as it is not yet standard. ... David B. Cross ... Windows Server 2003 web enrollment and troubleshooting guide: ... > only the S/MIME capability extension can not be added any more - at least ...
    (microsoft.public.platformsdk.security)
  • Re: Lost file associations
    ... Thank just helped me to - I lost my exe associations and the directory you ... directed David to helped!! ... > Some image/graphics programs will change file associations. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: uniqueness of fibonacci number extension
    ... Actually this is an extension from the domain of definition being the ... for all positive reals x>2. ... Hence there is no uniqueness. ... But this was already pointed out by David basically, ...
    (sci.math.research)