' Kill word application if isWordRunning =true then For Each process As Process In Process.GetProcessesByName("winword.exe") process.Kill process.WaitForExit Next end if ' Get any word application is runing or not Private Function isWordRunning() As Boolean Return (System.Diagnostics.Process.GetProcessesByName("winword").Length > 0) End Function
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)