Salam
you cannot get the information about the process running on the remoate PC,
but for that you must have an admin rights
Process[] arrProcess;
arrProcess=Process.GetProcesses(/* C REMOTE COMPUTER NAME*/);
foreach (Process p in arrProcess)
{
if (p.ProcessName==/* REQUIRED PROCESS NAME*/)
{
// do something
}
}
--
ALI RAZA SHAIKH
MCAD.net
www.programmersparadise.cjb.net
alirazashaikh.blogspot.com
"Paul Aspinall" <pa**@aspy.co.uk> wrote in message
news:9%******************@fe3.news.blueyonder.co.u k...
Hi
I want to write a piece of code, that will check if a particular service
is running on a particular machine.
Can someone give me a pointer as to which classes would be useful??
Any sample code would be appreciated
Thanks