>I have stored a complete file path in a field called docs.file_name. If I want to open the file stored in docs.file_name with notepad, what code would accomplish this?
>
>! /N c:\winnt\notepad.exe ????????????????
Richard,
I just uploaded a function to the files section under Win32 and Other APIs named File Runner. You simply pass it the file name and, using ShellExecute, runs it in the appropriate application. If the file isn't associated with any application, it brings up the "Open With..." dialog so that the user can choose the appropriate application. That should give you the information you need to use the function.
As for determining if a particular application is already running, look at "Is a Windows Application Running" in the same section.
hth,
George
Ubi caritas et amor, deus ibi est