![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 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 Specs![]() |
| | #3 (permalink) |
| | 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 Specs![]() |
| | #4 (permalink) |
| | 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 Specs![]() |
| | #5 (permalink) |
| | 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 Specs![]() |
![]() |
| 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 | |||