Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Other Programming > VBScript
VBScript For questions and discussions related to VBScript.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VBScript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old September 29th, 2005, 12:36 PM
Registered User
Join Date: Jul 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default GetFileVersion Not Returning A Version No.

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

Reply With Quote
  #2 (permalink)  
Old December 21st, 2005, 02:09 PM
Friend of Wrox
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts

I seem to recall that you can't retrieve the version of an application file using this method. You have to access the application object in order to get the version of Access ths is written in (like 95, 97, 2000, XP, 2003)

Reply With Quote

Similar Threads
Thread Thread Starter Forum Replies Last Post
Returning a recordset John Pennington VB Databases Basics 8 August 18th, 2008 08:37 AM
DDEInitiate returning zero jjk2 Beginning VB 6 1 January 3rd, 2008 02:46 PM
Passwords from version 1 to version 2 Maxxim BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 February 6th, 2007 06:49 PM
Returning a value Neal XSLT 6 October 13th, 2006 11:41 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.