Usenet.com

www.Usenet.com

Group Index

Comp Thread Archive from Usenet.com

<-- __Chronological__ --> <-- __Thread__ -->

the 'get path' command



      hi,

      I am trying to make my vb program find the path of the msn messenger
application (I want this to be done automatically on which ever computer it
is downloaded).
      The code I use is returning the wrong path: that of the vb executable
itself.
      Here's my code:

      Dim fso
      Dim newpath As String
      Set fso = CreateObject("Scripting.FileSystemObject")
      newpath = fso.GetAbsolutePathName("MSNMSGR.EXE")
      Print newpath  'to check if it's working

      any suggestions?
      Thanks
      Hala





<-- __Chronological__ --> <-- __Thread__ -->


Usenet.com



Please check out one of the premium Usenet Newsgroup Service Providers below for access to Usenet.