Since the path will be absolute, not relative, you need to work with that. Searching all the subfolders under C:\ProgramFiles\ for toto.exe is possible, but will slow down your code's execution every time you run it and really shouldn't be necessary.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|