Le 28 juin 2017 à 12:51 du soir, Jean-Luc Arnaud <[email protected]> a écrit:
> Hi all MBS users, > > I'm using ProcessMBS class in order to kill some processes. > > Usually, when a process is killed, the processes it may have launched > are killed, too. > > Unfortunately, this does not work with Robocopy (files copy utility from > Microsoft). > > Launched by a slave app, when I kill the process of this app, Robocopy > continues copying all the files/folders it has to copy. > > So, I need to kill Robocopy, too. But I have several slave apps and, of > course, several Robocopy processes. > > How to know what Robocopy process has been launched by a certain slave > app? Kind of "child process" of a process. > > Is there a way, using MBS or any other resource (i.e. dll call)? Hello Jean-Luc, I know it’s too late for you, because you found another approach, but, just for the archives, I’ve found that you can use this shell command to get process id of child processes: wmic process where (ParentProcessId=0) get Caption,ProcessId Replace 0 by the actual process id of the parent process. _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list [email protected] https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
