By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,180 Members | 1,202 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,180 IT Pros & Developers. It's quick & easy.

Open external program

P: n/a
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?
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
* "Ryan" <ac***********@hotmail.com> scripsit:
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)
///

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2

P: n/a
Hi Herfried,

Thank you very much for the info it works now for both my XP and
2000 OS.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.