var procs = Process.GetProcessesByName("winword"); foreach (var item in procs) if (item.MainWindowTitle.Contains("yourfileName")) item.Kill();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)