Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running Extrenal Programs
Message
 
To
09/02/1999 22:12:13
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00185803
Message ID:
00185930
Views:
22
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform