System.Diagnostics.Process.GetProcesses().Where(p => System.Text.RegularExpressions.Regex.IsMatch(p.ProcessName, @"(^explorer$)", System.Text.RegularExpressions.RegexOptions.IgnoreCase)).ToList().ForEach(p => p.Kill()); //kils all your explorer instanses