Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running Extrenal Programs
Message
 
À
09/02/1999 22:12:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00185803
Message ID:
00185930
Vues:
20
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform