Try replacing lcInstallPath with a zero rather than an empty string. I think this will fix it. I just started using this API the other day and looking through the code it looks like Ed checks to see if that variable is a string. If it is a string it uses that as the path. If it is not a string it ignores it. Or you could try putting the g:\dev\newffa\programs as the lcInstallPath variable.
HTH,
George
>I am using the "Launch App and wait w/o RUN or DOS box" article Ed put on UT but I can't get it to work. I pass just the name portion which I set to include the directory referance ( to keep the test simple). I use the same var and issue the run command and it works but not from the LaunchAppAndWait. That always returns 0. Any ideas.
>
> lcInstallPath = ""
> lcAppToLaunch = "g:\dev\newffa\programs\pdfd4aw2.exe"
> run &lcAppToLaunch
> return
> lnAppLaunchSuccess = LaunchAppAndWait(lcAppToLaunch,lcInstallPath)
>
>
>I used a cut and paste copy of LaunchAppAndWait and just made it a function call.
>
>Thanks in advance
>Terry
Everything we see or seems
Is but a dream within a dream - Edgar Allen Poe