Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find and launch an external program
Message
From
07/09/2000 11:19:58
 
 
To
07/09/2000 10:56:28
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00413523
Message ID:
00413550
Views:
13
Hi

If you know the file extention you can use the FindExecutable API function, this will return the associated exe of a file.

lcApplication=Findexecutable("c:\test.html")

this will return the location and name of your computers default browser.

Once you have the exe, you can use Shellexecute to launch the program.

Or you could just use the file to lunch the application

lnReturnValue=shellexecute(0,"OPEN, ""c:\test.html","","",1)

You will have to load these API in fox before you use them

Both these API are documented in the API section



Hope this helps

Steven Bowskill
Previous
Reply
Map
View

Click here to load this message in the networking platform