>Is there an API that will allow me to run a program by passing a file name and having the OS run the program based on the current file association?
>
>This is for Fox 2.6 and would love something that would work in 3.11/9x/NT is possible. Something like...
>
>RunProg('MyFile.Doc')
>
>and it would run Word and word would open myfile.doc... Or, it would run word perfect, if that was what was associated?
>
>Thanks,
Hi BOb,
ShellExecute() in the 16 bit shell.dll would be your best bet. You'd have to use RegFN() and CallFN() to use it. AFAIK (I haven't tried), it should work just fine.
George
Ubi caritas et amor, deus ibi est