Mega Code Archive

 
Categories / C# Tutorial / Development
 

Start a Web page using a browser associated with html and asp files

using System; using System.Diagnostics; using System.ComponentModel; class MyProcess {         static void Main()    {       // Start a Web page using a browser associated with .html and .asp files.       Process.Start("IExplore.exe", "C:\\myPath\\myFile.htm");       Process.Start("IExplore.exe", "C:\\myPath\\myFile.asp");    } }