Jean-Luc Arnaud
2016-10-26 09:09:13 UTC
Hi all,
Using a shell and Robocopy; I manage some files duplication.
I have 2 questions:
- Is there a way, when executing the command launching the files
duplication with Robocopy (MyShell.execute ....), to get back the PID of
the instance of Robocopy, given that it may have several instances of
Robocopy running at a time? Of course, I could list all of PIDs before
and after the shell command, but is there somzthing easier and faster?
- When needed, I kill (using Taskkill /F /T) one of the Robocopy
instance as a result of User cancellation. Nevertheless, Robocopy does
not stop immediately, it finishes to copy the current file. Is there a
way to kill it immediately (shell command, dll call, MBS command, ...)?
TIA for any advice/help.
Using a shell and Robocopy; I manage some files duplication.
I have 2 questions:
- Is there a way, when executing the command launching the files
duplication with Robocopy (MyShell.execute ....), to get back the PID of
the instance of Robocopy, given that it may have several instances of
Robocopy running at a time? Of course, I could list all of PIDs before
and after the shell command, but is there somzthing easier and faster?
- When needed, I kill (using Taskkill /F /T) one of the Robocopy
instance as a result of User cancellation. Nevertheless, Robocopy does
not stop immediately, it finishes to copy the current file. Is there a
way to kill it immediately (shell command, dll call, MBS command, ...)?
TIA for any advice/help.
--
Jean-Luc Arnaud
_______________________________________________
Unsubscribe by sending a message to:
<nug-***@lists.xojo.com>
List Help: <***@xojo.com>
Jean-Luc Arnaud
_______________________________________________
Unsubscribe by sending a message to:
<nug-***@lists.xojo.com>
List Help: <***@xojo.com>