Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Mike Gagnon
  Where is Mike Gagnon?
 Pointe Claire
 Canada
 Mike Gagnon
 To: Siva P
  Where is Siva P?
 Chennai
 India
 Siva P
 Tags
Subject: RE: File Information
Thread ID: 154724 Message ID: 155088 # Views: 1 # Ratings: 0
Version: Visual FoxPro 7 Category: Win32API programming
Date: Monday, December 24, 2007 1:12:29 PM         
   


> How can i handle this? Is there any WIN API function available to retrive?
>
> Thanks,
> Siva
>
> > You could also consider using the Windows File System object (distasteful I know)
> > from within VFP to get the item you are looking for.
> >

As Bernard suggested

loFSO = CreateObject("Scripting.FileSystemObject")
?loFSO.GetFileVersion("c:\windows\twain.dll")


P.S. Most Windows DLL do contain a version number that you can retrieve with the GetFileVersionInfo API, unfortunately not all 3rd party DLL have this method.

Mike Gagnon
Refox XI +(English version)

ENTIRE THREAD

File Information Posted by Siva P @ 12/19/2007 6:55:36 AM
RE: File Information Posted by Bernard Bout @ 12/20/2007 3:14:15 PM
RE: File Information Posted by Don Sullivan @ 12/22/2007 1:01:41 AM
RE: File Information Posted by Siva P @ 12/24/2007 8:15:22 AM
RE: File Information Posted by Mike Gagnon @ 12/24/2007 1:12:29 PM