Re: FileSystemObject problem
- From: "expvb" <nobody@xxxxxxx>
- Date: Sat, 15 Jul 2006 19:06:40 -0400
"vul" <aaa@xxxxxxxxxxxxx> wrote in message
news:udzm3hFqGHA.4188@xxxxxxxxxxxxxxxxxxxxxxx
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
Try this instead:
http://vbnet.mvps.org/code/fileapi/filesearchinfo.htm
.
- Follow-Ups:
- Re: FileSystemObject problem
- From: vul
- Re: FileSystemObject problem
- From: vul
- Re: FileSystemObject problem
- References:
- FileSystemObject problem
- From: vul
- FileSystemObject problem
- Prev by Date: Re: VB6 - Transparent BackColor In Text Box
- Next by Date: Re: help me please.... (filter chart)
- Previous by thread: FileSystemObject problem
- Next by thread: Re: FileSystemObject problem
- Index(es):
Relevant Pages
|