Remote Process Information

  • Thread starter Thread starter xla76
  • Start date Start date
X

xla76

Using WMI I can get the full path of a process on a remote computer:
"SELECT ExecutablePath FROM Win32_Process"

Without wmi I can get theprocessname and id:
For Each ps In System.Diagnostics.Process.GetProcesses(PC.Name)
processgrid.Rows.Add(ps.ProcessName, ps.Id)
Next ps

Any ideas how I can get the process path (using vb 2005)

Thanks,
Pete.
 
xla76 said:
Using WMI I can get the full path of a process on a remote computer:
"SELECT ExecutablePath FROM Win32_Process"

Without wmi I can get theprocessname and id:
For Each ps In System.Diagnostics.Process.GetProcesses(PC.Name)
processgrid.Rows.Add(ps.ProcessName, ps.Id)
Next ps

Any ideas how I can get the process path (using vb 2005)

Thanks,
Pete.

I think ps.StartInfo.FileName returns the full path.

HTH,

RB.
 
xla76 said:
So, back to WMI then?

The only other suggestion I can think of is to create a service on the
remote machine that would report back the list of processes running on
the remote machine.

Actually, that would be quite cool - you could make it a web-service and
then query it from any computer through a web-based interface as well as
from your application :-) Um - don't know if that's what you want though!!

Cheers,

RB.
 
The only other suggestion I can think of is to create a service on the
remote machine that would report back the list of processes running on
the remote machine.

Actually, that would be quite cool - you could make it a web-service and
then query it from any computer through a web-based interface as well as
from your application :-) Um - don't know if that's what you want though!!

Cheers,

RB.

Thanks for your efforts RB, but I just wanted a method of reading/
controlling processes as and when required, so a service would be
overkill (and over my head at the minute - though I will look into it
at some stage).

Regards
Pete
 
Back
Top