Opening URL in default Web Browser

Tagged:

MSDN links:
Run Method (Windows Script Host)
ShellExecute Function

This is sample code. Add error handling and adjust to your requirements as necessary.

lcUrl = "http://msdn.microsoft.com/vfoxpro"
 
&& WSH
oShell = Createobject("wscript.shell")
oShell.Run(lcUrl)
 
&& ShellExecute Win API
DECLARE INTEGER ShellExecute IN "Shell32.dll" ;
	INTEGER hwnd, STRING lpVerb, STRING lpFile, ;
	STRING lpParameters, STRING lpDirectory, LONG nShowCmd
ShellExecute(0, "Open", lcUrl, "", "", 1)