Opening URL in default Web Browser
By Sergey - Posted on January 1st, 2008
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)
Recent comments
2 days 16 hours ago
1 week 27 min ago
1 week 1 hour ago
1 week 3 days ago
1 week 3 days ago
2 weeks 4 days ago
2 weeks 4 days ago
3 weeks 58 min ago
3 weeks 1 hour ago
3 weeks 1 day ago