FileSystemObject problem



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



.



Relevant Pages

  • Re: FileSystemObject problem
    ... step to squeeze the code from that sample for my need. ... I need to compare versions of 2 files located in different places. ... Dim obj As New FileSystemObject ... If I delete WorkorderXML.dll from App.Path, then even EXE returns the ...
    (microsoft.public.vb.general.discussion)
  • Re: FileSystemObject problem
    ... I need to compare versions of 2 files located in different places. ... Dim obj As New FileSystemObject ... then even EXE returns the version ... Any hint please. ...
    (microsoft.public.vb.general.discussion)
  • Re: FileSystemObject problem
    ... analyses to make it work first. ... I need to compare versions of 2 files located in different places. ... Dim obj As New FileSystemObject ... If I delete WorkorderXML.dll from App.Path, then even EXE returns the ...
    (microsoft.public.vb.general.discussion)
  • Lost ability to use exe files
    ... I just lost the ability to use exe files. ... strange problem. ... registered program. ... that gave instructions but I had to use regedit, ...
    (microsoft.public.windowsxp.general)
  • Re: Knowing when a frame/IWebBrowser2 is destroyed?
    ... > No sooner had I done this that I found a very strange problem. ... query both pointers for IUnknown, and compare the resulting IUnknown* ... This is called COM identity comparison. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)