I am new in C#, I want to get the application name (Which is displaying in task manger app part) using .exe.
I have googled it but didn't found useful information.
I want to Description information for each exe.
Thanks,
I am new in C#, I want to get the application name (Which is displaying in task manger app part) using .exe.
I have googled it but didn't found useful information.
I want to Description information for each exe.
Thanks,
You can use the Process
class located under System.Diagnostics
:
using System.Diagnostics;
...
var allProcceses = Process.GetProcesses();
//loop throught processes
string process_description= process.MainModule.FileVersionInfo.FileDescription;
This answer provides some information about the Process
class.
NB : you may have some issues when trying to access some processes running under SYSTEM credentials : see this post.