>Is there an API call or a function to search a local drive for an executable, and then launch the program from Foxpro.
Depends on what you're looking for and how. First of all FindFirstFile requires that a fully qualified file name be passed. If it's not, only the current working directory is searched. It does, however, support wildcards.
If you have an existing file name associated with the file ShellExecute() will launch the associated application and open or print the file. There's documentation on ShellExecute() in the API section here, there's a class in the FFV that'll do this, and there's a program I wrote (File Runner) that's in the download section under Win32 and Other APIs. Further, the WScript.Shell object's Run method can do this as well.
If you're just looking to run another application, you'll have to "roll your own" routine to search for it, unless that application exposes a OLE Automation COM interface.
George
Ubi caritas et amor, deus ibi est