用:Process.Start 方法see: // url's are not considered documents. They can only be opened
// by passing them as arguments.
Process.Start("IExplore.exe", "www.northwindtraders.com");
// 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");
// by passing them as arguments.
Process.Start("IExplore.exe", "www.northwindtraders.com");
// 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");
public void OpenApplication(string myFavoritesPath)
{
// Start Internet Explorer. Defaults to the home page.
System.Diagnostics.Process.Start("IExplore.exe");
// Display the contents of the favorites folder in the browser.
System.Diagnostics.Process.Start(myFavoritesPath);
}