Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

How to open your deault web browser and open webpage [Mozilla or IE]

I just saw a post where one person typed...
Code
Shell "C:\Program Files\Internet Explorer\IEXPLORE.EXE http://www.google.com

Why you would use that? I don't know.
Here is a very simple way.

Code
Process.Start "hackforums.net"

That's it.
This is will open up whatever default browser
you use such as Mozilla Firefox or Internet Explorer
and direct you right the to web page you have in the code.
is'nt like this?? Process.Start("hackforums.net") ??
Yes, It's the same thing

No need to add the ( )'s, VB2008 will add those in for you automatically.
ShellExecute would be to prefer for opening browser/browsing, since its a bit more advanced
But the shell command is still only going to the website that you've added.
Code
Shell "C:\Program Files\Internet Explorer\IEXPLORE.EXE http://www.google.com
Will only go to google.com
Which is just having the command prompt do that.
Why do that when you have the process.start code which is shorter, easier to remember,
and doesn't run through your command prompt or directories, It might be more "advanced"
but why would you make the code more advanced when no one sees the code and it
does the same thing?


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by DataTron.NetworkFeb 11, 2019 05:08 PM 2 179 Feb 11, 2019 05:08 PM
Last Post: Suspect.
[.NET] by Phoenix_101VB.NET_DUDENov 19, 2016 04:14 PM 13 480 Nov 19, 2016 04:14 PM
Last Post: Ninja
[Python] by AleksasNov 16, 2016 07:40 AM 2 139 Nov 16, 2016 07:40 AM
Last Post: Aleksas