سؤال

Is there a way to get the count of excel objects created in system(taskmanager)? I want to get the count using C# code,I`m using C# version 2.0.

Please help.

Thanks in advance.

هل كانت مفيدة؟

المحلول

Using System.Diagnostic.Process.GetProcessesByName:

System.Diagnostics.Process.GetProcessesByName("EXCEL").Length;
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top