Open external program

  • Thread starter Thread starter Ryan
  • Start date Start date
R

Ryan

System.Diagnostics.Process.Start("http://www.yahoo.com")

This code works fine in VB.NET using Windows XP it opens
up the default Internet Browser but when I use Windows
2000 with this code it pops up an error Message "The
system cannot find the file specified" My Windows 2000 OS
has same browser as the XP but I think with diff version.
Is there any other way to open my default internet browser
throught VB.NET code with web site parameter same as above?
 
* "Ryan said:
System.Diagnostics.Process.Start("http://www.yahoo.com")

This code works fine in VB.NET using Windows XP it opens
up the default Internet Browser but when I use Windows
2000 with this code it pops up an error Message "The
system cannot find the file specified" My Windows 2000 OS
has same browser as the XP but I think with diff version.
Is there any other way to open my default internet browser
throught VB.NET code with web site parameter same as above?

Does this work?

\\\
Dim psi As New ProcessStartInfo
psi.FileName = "http://www.bla.foo"
psi.UseShellExecute = True
Process.Start(psi)
///
 
Hi Herfried,

Thank you very much for the info it works now for both my XP and
2000 OS.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top