Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GetFileVersion Not Returning a Version No.

Status
Not open for further replies.

mab43

Technical User
Aug 5, 2004
11
The following code is only returning a version number with .dll files. I am trying to determine the version of an access file. Any reccos?
----------------------------------------
Dim fso
Set fso = CreateObject("Scripting.FileSystemObject")
v = fso.GetFileVersion("C:\test.mdb")
msgbox v
 
And this ?
v = GetObject("C:\test.mdb").Version
MsgBox v


Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
I get an error at the line. I am using VB Script.
 
Any chance you could post the whole error message ?
Have you ms-access installed ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Here you go:
Windows Script Host
Script: filepath
Line: 4
Char 1
Error: Unspecified error
Code: 80004005
Source (null)
Thanks for you help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top