>Instead of checking the return value, check the value of cBuffer after the call is made. It will contain the full path to the executable registered as the default viewer. So you can:
>
>nRetVal = FindExecutable("c:\somedoc.doc",getenv('temp') , @cBuffer)
>llHasWord = LOWER(JUSTFNAME(cBuffer)) = "winword.exe"
Hey, that's a great idea, Erik. I was the one who gave Steve the above code, and I got it from someone else...but I like your idea better, since I've been having some trouble with return values accurately reflecting the situation (as I posted about a few weeks ago).
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.