>How can I launch the default browser installed on any WIN 95 or NT PC from a VFP 5.0 application, and direct it to a specific URL. I'm guessing that there is some registry reading involved. Thanks for any help in advance.
Coming straight from Rick Strahl's excellent FoxPro Advisor article:
LPARAMETERS tcURL, tcAction
tcURL = IIF(TYPE("tcURL")="C",tcURL,"
http://www.west-wind.com/")
tcAction = IIF(TYPE("tcAction")="C",tcAction,"Open")
DECLARE INTEGER ShellExecute IN shell32.DLL;
INTEGER nWinHandle,;
STRING cOperation,;
STRING cFileName,;
STRING cParameters,;
STRING cDirectory,;
INTEGER nShowWindow
DECLARE INTEGER FindWindow IN win32api;
STRING cNull, STRING cWinName
RETURN ;
ShellExecute (FindWindow(0,_SCREEN.CAPTION),tcAction,tcURL,"",SYS(2023),1)
Where tcURL is the web address and tcAction is an optional Action parameter (usually "Open")
Ryan Hirschey