Use of 'shell' to Launch a URL in Windows |
|
on launchBrowser theURL
set the hideConsoleWindows to true
put empty into theTitle
if "NT" is in the systemVersion then
set the shellCommand to "cmd.exe"
put quote & quote into theTitle
end if
get shell("start" && theTitle && theURL)
end launchBrowser
Passing a URL to this handler should launch the URL in the default browser on any system
from Win95 to XP, even with parameters included in the URL string. If the handler vails for you,
let me know off list what your findings are. Testing here on Win95/98/2K/XP appeared to work
in all cases.
Posted 5/29/2002 by Scott Rossi to the MetaCard List (See the complete post/thread)