On Sep 20, 2006 2:58 AM, Walter Purvis wrote:
> > -----Original Message-----
> > Dim shres As String
> > shres = DoShellCommand("open http://www.google.com/")
> >
> > Unfortunately, the "open" shell command does NOT work in the
> > Windows IDE or the Linux IDE, and I can't seem to find any
> > other comparable shell commands for those platforms to
> > accomplish the same thing (without having to resort to
> > Context Object methods and Declares).
>
> On Windows, you can use:
>
> DoShellCommand( "explorer.exe http://www.google.com/")
>
On Windows if you open a command prompt window and type
"start http://www.google.com"
it will show the page in the default web browser (IE, FireFox or
anything else).
The problem is that I couldn't get it working with RB's
Shell.Execute - it gives always error -2. I'm not experienced on using
shell commands on RB with Windows, so I might be doing something
wrong.
Anyway, and just for info, there's an article on MS that shows how to
use the ShellExecute API to launch a page in the default web browser:
http://support.microsoft.com/kb/224816/en-us
Carlos
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>