FileSystemObject problem
- From: "vul" <aaa@xxxxxxxxxxxxx>
- Date: Sat, 15 Jul 2006 17:48:52 -0400
I have a very strange problem with FSO.
I need to compare versions of 2 files located in different places. 1 of them
is in App.Path, and another one let's say in "C:\MyDLLs". Both have the same
name WorkorderXML.dll
I'm doing this:
Dim obj As New FileSystemObject
Dim strSource As String
strSource = "C:\MyDLLs\WorkorderXML.dll"
MsgBox obj.GetFileVersion(strSource)
If I run the project from VB, it returns correct version, if I run compiled
EXE, which is located in App.Path of VB project, it returns the version of
the file, located in App.Path directory, not in "C:\MyDLLs". If I delete
WorkorderXML.dll from App.Path, then even EXE returns the version of the
file from "C:\MyDLLs". If I return WorkorderXML.dll into App.Path, EXE
starts to return its version.
It drives me crazy, I spent several hours on this problem.
Any hint please.
Al
.
- Follow-Ups:
- Re: FileSystemObject problem
- From: Larry Serflaten
- Re: FileSystemObject problem
- From: expvb
- Re: FileSystemObject problem
- Prev by Date: Re: VB6 fonts on different display sizes
- Next by Date: Re: VB6 - Transparent BackColor In Text Box
- Previous by thread: Re: VB6 fonts on different display sizes
- Next by thread: Re: FileSystemObject problem
- Index(es):
Relevant Pages
|