I\'m looking for a way to close a Windows explorer window that\'s open to a certain folder. Say c:\\users\\bob\\folder. I can close all explorers with the code below, but th
foreach (Process p in Process.GetProcessesByName("explorer")) { if (p.MainWindowTitle.Contains("YourFolderName")) { p.Kill(); } }