Sorry reposting for clarity...

Which one is better? This:

System.Diagnostics.Process.Start(URL)

or this?

Dim psi As New ProcessStartInfo()
psi.UseShellExecute = True
psi.FileName = URL
Process.Start(psi)

And why?

Regards,


--
Anil Gupte
www.keeninc.net
www.icinema.com
www.wizo.tv

Re: Opening a URL in an external Browser? by kimiraikkonen

kimiraikkonen
Tue Jul 15 07:07:15 CDT 2008

On Jul 15, 12:12 pm, "Anil Gupte/iCinema.com" <anil-l...@icinema.com>
wrote:
> Sorry reposting for clarity...
>
> Which one is better? This:
>
> System.Diagnostics.Process.Start(URL)
>
> or this?
>
> Dim psi As New ProcessStartInfo()
> psi.UseShellExecute =3D True
> psi.FileName =3D URL
> Process.Start(psi)
>
> And why?
>
> Regards,
>
> --
> Anil Guptewww.keeninc.netwww.icinema.comwww.wizo.tv

There's also another option:

Shell("explorer.exe http://www.google.com")

' Also

BTW, when you use "ProcessStartInfo" class, you're allowed to define
how your process will be launched. See members of that class using
IntelliSense.

Hope this helps,

Onur G=FCzel

Re: Opening a URL in an external Browser? by Anil

Anil
Wed Jul 16 07:31:28 CDT 2008

Oh sure, confuse me even more...:-)

But which one is better?

--
Anil Gupte
www.keeninc.net
www.icinema.com
www.wizo.tv
"kimiraikkonen" <kimiraikkonen85@gmail.com> wrote in message
news:1b2c7d23-111c-4b5d-8f00-a5f2cd1c04ae@e39g2000hsf.googlegroups.com...
On Jul 15, 12:12 pm, "Anil Gupte/iCinema.com" <anil-l...@icinema.com>
wrote:
> Sorry reposting for clarity...
>
> Which one is better? This:
>
> System.Diagnostics.Process.Start(URL)
>
> or this?
>
> Dim psi As New ProcessStartInfo()
> psi.UseShellExecute = True
> psi.FileName = URL
> Process.Start(psi)
>
> And why?
>
> Regards,
>
> --
> Anil Guptewww.keeninc.netwww.icinema.comwww.wizo.tv

There's also another option:

Shell("explorer.exe http://www.google.com")

' Also

BTW, when you use "ProcessStartInfo" class, you're allowed to define
how your process will be launched. See members of that class using
IntelliSense.

Hope this helps,

Onur Güzel



Re: Opening a URL in an external Browser? by Martin

Martin
Wed Jul 16 08:09:31 CDT 2008

On 16.07.2008 20:31, wrote Anil Gupte/iCinema.com:
> Oh sure, confuse me even more...:-)
>
> But which one is better?

Who cares as long as it works?

Best regards,

Martin

Re: Opening a URL in an external Browser? by \(O\)enone

\(O\)enone
Wed Jul 16 08:15:37 CDT 2008

kimiraikkonen wrote:
> There's also another option:
> Shell("explorer.exe http://www.google.com")

That may well work, but I'd strongly advise against it because it always
opens using Internet Explorer. The other options presented by the OP will
observe the user's default browser settings, thereby not annoying the hell
out of them. :)

--

(O)enone



Re: Opening a URL in an external Browser? by Martin

Martin
Wed Jul 16 09:05:10 CDT 2008

On 16.07.2008 21:15, wrote (O)enone:
> kimiraikkonen wrote:
>> There's also another option:
>> Shell("explorer.exe http://www.google.com")
>
> That may well work, but I'd strongly advise against it because it always
> opens using Internet Explorer. The other options presented by the OP will
> observe the user's default browser settings, thereby not annoying the hell
> out of them. :)
>

The alternative would be:

Shell("cmd /C start http://www.google.com")

'Opens the standard browser.

Best regards,

Martin