关闭所有的IE窗口:
System.Diagnostics.Process //引入命名空间System.Diagnostics.Process[] myProcesses = System.Diagnostics.Process.GetProcesses();foreach (System.Diagnostics.Process myProcess in myProcesses)
{
    if (myProcess.ProcessName.ToUpper() == "IEXPLORE")
    {
        myProcess.Kill();
    }
}
关闭你指定的IE窗口:(通过YourTitleSetting判断)
Process[]   pros   =   System.Diagnostics.Process.GetProcessesByName("IEXPLORE");   
  foreach(Process   p   in   pros)   
  {   
  if(p.MainWindowTitle.Equals("YourTitleSetting"))   
  p.Kill();   
  }