Below is the code to close word/excel exe uisng C#
Process[] eProcess;
eProcess = System.Diagnostics.Process.GetProcessesByName("EXCEL");
eProcess[0].Kill();
Process[] wProcess;
wProcess = System.Diagnostics.Process.GetProcessesByName("WINWORD");
wProcess[0].Kill();
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment