I am trying to kick off a bunch of processes on a remote computer connected to my LAN. I had code working to do the same thing on a local computer. However, that API didn't allow me to do this.
for (int k=1;k<=iterNum;k++) {
argumvar="-c -i "+sourcePath + Convert.ToString(k) +
"\\myProgram.exe /r "+sourcePath+Convert.ToString(k)+"\\"+nameonly;
Process process = new Process();
ProcessStartInfo psi = new
ProcessStartInfo(@"C:\PsExec.exe",argumvar);
psi.UseShellExecute = false;
psi.RedirectStandardOutput = true;
psi.RedirectStandardError = true;
psi.RedirectStandardInput = true;
//psi.WindowStyle = ProcessWindowStyle.Minimized;
//psi.CreateNoWindow = true;
//psi.Arguments = argumvar;
process.StartInfo = psi;
process.Start();
}