Regardless of your problem the FSO is out if you want it to work on
all machines, they could well have the sensible option of scripting
disabled.
So you might want to forget the FSO and read the registry yourself for
the information your after
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr entVersion\App
Paths\MSNMSGR.EXE
Geoff
"Suzette" <an**@worldnet.att.net> wrote in message news:<-W********************@comcast.com>...
Perhaps it's because the executable and the messenger are in different
subdirectories. The problem is GetAbsolutePathName can only look up or down
the branch of the directory tree it's starting at. Try changing to the root
path before looking for messenger.
Sue
"hala" <tr*******@yahoo.com> wrote in message
news:bj**********@charm.magnus.acs.ohio-state.edu... 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