Reputation:
I want to know if a process is running in the current machine as a part of my application ,but my application is deployed in another machine.
I'm using System.Diagnostics.Getprocessbyname
but it looks for processes on the machine the application is deployed to. I want to know whether the process is running on my machine.
Is there a way to do this?
Note: This is edited by someone other than the question asker in an attempt to make it easier to understand. I have may not correctly captured their question..
Upvotes: 2
Views: 183
Reputation: 10684
You can use
System.Diagnostics.Process.GetProcessesByName("processname", "mymachine");
Upvotes: 2