Opening Files, Applications, Web Documents, and the Mail Client
Opening a File
Starting an Application
If you want to start an application, you can simply call
Shell("C:\bla.exe") in Visual Basic .NET.
Opening a Webpage in the Default Browser
For starting the system’s default browser with a predefined URL, specify the URL you want to be displayed instead of the filename in the code listed above.
The code below can be used to start a new instance of Internet Explorer and display a certain webpage:
Opening the Default E-Mail Client with a Template
Sample based on work by Fergus Cooney and Cor Ligthert [MVP]:
Add a reference to
System.Web.dll. Then you can use this code: