Carlos,

While the "start" command does appear to work in the Windows Command Prompt,
it does not seem to work with IDE Scripting's DoShellCommand.  But thanks
for the suggestion.  :-)

And yes, I can get ShellExecute declares to launch a web browser URL, but
that requires placing that code in a method inside a Context Object,
something I was hoping to avoid, so that my IDE Script's RBScript code
remained self-contained and portable.  By the way, if you need that
ShellExecute declare for launching a URL in a specified browser, let me know
and I'll post it.

Thanks.

--Dave



> 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>

_______________________________________________
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>

Reply via email to