Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to open an HTML file in the default HTML editor
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01176062
Message ID:
01176065
Views:
12
This message has been marked as the solution to the initial question of the thread.
>Hi all
>
>I have the pathname to an HTML file. I would like to open it in an HTML editor (if my understanding is correct default association of HTML file is the browser), FrontPage maybe as a preference editor if multiple HTML editors are present.
>
>Please advise.

Not tested:
LOCAL result
DECLARE INTEGER ShellExecute IN SHELL32.DLL INTEGER nWinHandle,;
                                            STRING cOperation,;
                                            STRING cFileName,;
                                            STRING cParameters,;
                                            STRING cDirectory,;
                                            INTEGER nShowWindow
result = ShellExecute(0, 'edit', [FULL_PATH_TO_HTML_FILE_HERE] , '', '', 1)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform