
Determining file Version via VB(word 95, 97, Excel 95 97)
Hi,
I have an application that I wrote that when a user clicks on a file, it
will run the the file with whatever the file is associated with...ex:
myFile.DOC would launch word opening it with myFile.DOC.
What I would like to do is check the version of the file before running
it. If currently me only have Word 95 yet receive Word 97 files. I want
to be able to alert the user that the file is 97 and they will need to
view it with the Word 97 viewer program (which they have). I used to
open the file for binary and then search the file for "Word.Document.8" .
This normally meant the file was Word 97. Seems something has changed as
it does not always have the above in a 97 doc. Any ideas on how I can
verify what version the file is? How about Excel? I have nothing to
check for on excel files that I am aware of...
As always, any and all help is greatly appreciated. Thanks
Geo...