how to track the path of applications running in task manager?
-
Using System.Diagnostics, I am able to track all the process and applications running in task manager. Checked every blog, but there is no information about tracking the path of applications running in taskmanager's application tab. I am getting path of process: using string q = Process.GetCurrentProcess().MainModule.FileName; 1. But for applications's path there is no option as such. Only name of the application can be tracked using "MainWindowTitle". 2. Even no of similar applications like if there are two excel applications are running then i want to find out the count but there is no option for MainWindowTitle count. nyone knows about this, then please give me clue. Thanks & Regards, gtag
-
Using System.Diagnostics, I am able to track all the process and applications running in task manager. Checked every blog, but there is no information about tracking the path of applications running in taskmanager's application tab. I am getting path of process: using string q = Process.GetCurrentProcess().MainModule.FileName; 1. But for applications's path there is no option as such. Only name of the application can be tracked using "MainWindowTitle". 2. Even no of similar applications like if there are two excel applications are running then i want to find out the count but there is no option for MainWindowTitle count. nyone knows about this, then please give me clue. Thanks & Regards, gtag
-
Do you want to get the application path of all running processes ?
Process[] processes = Process.GetProcesses();
foreach(Process process in processes)
{
Console.WriteLine(process.MainModule.FileName);
} -
It will give path of all running processes which u will find in task manager's process tab.But I need path of applications related to process which u will find in task manager's application tab. I need the path of process.MainWindowTitle's .
-
-
Thank you but I already checked above blog, its just giving the list of applications in application tab of task manager but I need even path(physical path of application on machine). I mean application's(MainWindowTitle's) location in disk.
-
Using System.Diagnostics, I am able to track all the process and applications running in task manager. Checked every blog, but there is no information about tracking the path of applications running in taskmanager's application tab. I am getting path of process: using string q = Process.GetCurrentProcess().MainModule.FileName; 1. But for applications's path there is no option as such. Only name of the application can be tracked using "MainWindowTitle". 2. Even no of similar applications like if there are two excel applications are running then i want to find out the count but there is no option for MainWindowTitle count. nyone knows about this, then please give me clue. Thanks & Regards, gtag
I don't understand what it is you want, and seems like neither do the others. So stop repeating yourself, and improve your question using more and other words, and maybe some examples. :)
Luc Pattyn
:badger: :jig: :badger:
Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.
:jig: :badger: :jig: