ArrayList alist = new ArrayList();
// From remote machine
Process[] processes = Process.GetProcesses("RemoteComputerName");
// From local machine
Process[] processes = Process.GetProcesses();
foreach (Process process in processes)
{
alist.Add(process.ProcessName);
}
// From remote machine
Process[] processes = Process.GetProcesses("RemoteComputerName");
// From local machine
Process[] processes = Process.GetProcesses();
foreach (Process process in processes)
{
alist.Add(process.ProcessName);
}
Comments
Post a Comment