Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Missing file version info

Reply
 
Old 03-05-2009   #1 (permalink)
John


 
 

Missing file version info

Hi

I am using below code to get the version of a compiled access database file
(mde). The file exists at the location.

set objFSO = CreateObject("Scripting.FileSystemObject")
MsgBox objFSO.GetFileVersion("G:\My Path\My File.mde")

The problem is that the msgbox displays blank hence version is not being
returned. What am I missing?

Thanks

Regards



My System SpecsSystem Spec
Old 03-05-2009   #2 (permalink)
Richard Mueller [MVP]


 
 

Re: Missing file version info

John wrote:
Quote:

>
> I am using below code to get the version of a compiled access database
> file (mde). The file exists at the location.
>
> set objFSO = CreateObject("Scripting.FileSystemObject")
> MsgBox objFSO.GetFileVersion("G:\My Path\My File.mde")
>
> The problem is that the msgbox displays blank hence version is not being
> returned. What am I missing?
>
> Thanks
If the file name and path are correct, then there is no file version
information available. Are you sure that G: is available to the script? What
happens if you code:

Set objFSO = CreateObject("Scripting.FileSystemObject")
strFile = "G:\My Path\My File.mde"
MsgBox objFSO.FileExists(strFile)
MsgBox objFSO.GetFileVersion(strFile)

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--


My System SpecsSystem Spec
Old 03-06-2009   #3 (permalink)
John


 
 

Re: Missing file version info

Hi Richard

Thanks. The first box says True the second is blank.

Thanks again.

Regards

"Richard Mueller [MVP]" <rlmueller-nospam@xxxxxx> wrote in
message news:OrWwx8gnJHA.1216@xxxxxx
Quote:

> John wrote:
>
Quote:

>>
>> I am using below code to get the version of a compiled access database
>> file (mde). The file exists at the location.
>>
>> set objFSO = CreateObject("Scripting.FileSystemObject")
>> MsgBox objFSO.GetFileVersion("G:\My Path\My File.mde")
>>
>> The problem is that the msgbox displays blank hence version is not being
>> returned. What am I missing?
>>
>> Thanks
>
> If the file name and path are correct, then there is no file version
> information available. Are you sure that G: is available to the script?
> What happens if you code:
>
> Set objFSO = CreateObject("Scripting.FileSystemObject")
> strFile = "G:\My Path\My File.mde"
> MsgBox objFSO.FileExists(strFile)
> MsgBox objFSO.GetFileVersion(strFile)
>
> --
> Richard Mueller
> MVP Directory Services
> Hilltop Lab - http://www.rlmueller.net
> --
>
>

My System SpecsSystem Spec
Old 03-06-2009   #4 (permalink)
Richard Mueller [MVP]


 
 

Re: Missing file version info

That confirms that the file is definitely found. There must be no version
information. Assuming the Access database has a version, you probably need
to use a T-SQL query to retrieve it.

I have SQL Server databases where a row in one of the tables is a version
number, but I maintain that. Otherwise, the only version number I know of is
the version of the SQL Server instance. For that I use the @@VERSION
function in a T-SQL query. I use ADO in a VBScript program to query the
Master database in the instance and retrieve the result. I assume this would
work in Access, but I am not familiar with *.mde files. You may need to ask
in an Access newsgroup.

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--

"John" <info@xxxxxx> wrote in message
news:ujT6MwjnJHA.4912@xxxxxx
Quote:

> Hi Richard
>
> Thanks. The first box says True the second is blank.
>
> Thanks again.
>
> Regards
>
> "Richard Mueller [MVP]" <rlmueller-nospam@xxxxxx> wrote in
> message news:OrWwx8gnJHA.1216@xxxxxx
Quote:

>> John wrote:
>>
Quote:

>>>
>>> I am using below code to get the version of a compiled access database
>>> file (mde). The file exists at the location.
>>>
>>> set objFSO = CreateObject("Scripting.FileSystemObject")
>>> MsgBox objFSO.GetFileVersion("G:\My Path\My File.mde")
>>>
>>> The problem is that the msgbox displays blank hence version is not being
>>> returned. What am I missing?
>>>
>>> Thanks
>>
>> If the file name and path are correct, then there is no file version
>> information available. Are you sure that G: is available to the script?
>> What happens if you code:
>>
>> Set objFSO = CreateObject("Scripting.FileSystemObject")
>> strFile = "G:\My Path\My File.mde"
>> MsgBox objFSO.FileExists(strFile)
>> MsgBox objFSO.GetFileVersion(strFile)
>>
>> --
>> Richard Mueller
>> MVP Directory Services
>> Hilltop Lab - http://www.rlmueller.net
>> --
>>
>>
>
>

My System SpecsSystem Spec
Old 03-06-2009   #5 (permalink)
John


 
 

Re: Missing file version info

Tried both Move and dragging. Same result.

Thanks

Regards

"Richard Mueller [MVP]" <rlmueller-nospam@xxxxxx> wrote in
message news:u9pvpJonJHA.4168@xxxxxx
Quote:

> That confirms that the file is definitely found. There must be no version
> information. Assuming the Access database has a version, you probably need
> to use a T-SQL query to retrieve it.
>
> I have SQL Server databases where a row in one of the tables is a version
> number, but I maintain that. Otherwise, the only version number I know of
> is the version of the SQL Server instance. For that I use the @@VERSION
> function in a T-SQL query. I use ADO in a VBScript program to query the
> Master database in the instance and retrieve the result. I assume this
> would work in Access, but I am not familiar with *.mde files. You may need
> to ask in an Access newsgroup.
>
> --
> Richard Mueller
> MVP Directory Services
> Hilltop Lab - http://www.rlmueller.net
> --
>
> "John" <info@xxxxxx> wrote in message
> news:ujT6MwjnJHA.4912@xxxxxx
Quote:

>> Hi Richard
>>
>> Thanks. The first box says True the second is blank.
>>
>> Thanks again.
>>
>> Regards
>>
>> "Richard Mueller [MVP]" <rlmueller-nospam@xxxxxx> wrote in
>> message news:OrWwx8gnJHA.1216@xxxxxx
Quote:

>>> John wrote:
>>>
>>>>
>>>> I am using below code to get the version of a compiled access database
>>>> file (mde). The file exists at the location.
>>>>
>>>> set objFSO = CreateObject("Scripting.FileSystemObject")
>>>> MsgBox objFSO.GetFileVersion("G:\My Path\My File.mde")
>>>>
>>>> The problem is that the msgbox displays blank hence version is not
>>>> being returned. What am I missing?
>>>>
>>>> Thanks
>>>
>>> If the file name and path are correct, then there is no file version
>>> information available. Are you sure that G: is available to the script?
>>> What happens if you code:
>>>
>>> Set objFSO = CreateObject("Scripting.FileSystemObject")
>>> strFile = "G:\My Path\My File.mde"
>>> MsgBox objFSO.FileExists(strFile)
>>> MsgBox objFSO.GetFileVersion(strFile)
>>>
>>> --
>>> Richard Mueller
>>> MVP Directory Services
>>> Hilltop Lab - http://www.rlmueller.net
>>> --
>>>
>>>
>>
>>
>
>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
From info missing in outlook Vista mail
Vista 32 bit - file/properties/details tab missing info for .sys files Vista General
Vista 32 bit SP1 - file/properties/details tab - missing info for .sys files Vista file management
the version of WindowsThe version of this file is not compatible with you're running Software
Missing drive info Vista performance & maintenance


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46