Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Multiple run program with xcopy and wait (https://www.kinook.com/Forum/showthread.php?t=3473)

wkwan 02-24-2008 09:47 PM

Multiple run program with xcopy and wait
 
1 Attachment(s)
Hi Kinook,

I am trying to copy one folder to different destinations in our network simultaneously. Below is what I did.

run program(xcopy) don't wait for completion - location 1
run program(xcopy) don't wait for completion - location 2
run program(xcopy) don't wait for completion - location 3
wait(%RUNPROGRAM_PROCESSID%)

Wait will always fail because it is only waiting for only one process to exit. How do I wait for ALL the run program to finish?

Is there a better way to do the copy of one source folder to multiple destination folder simultaneously?

Attached is the similar example that always fails.

Thanks in advance.

kinook 02-25-2008 06:22 AM

1 Attachment(s)
After each of the first two steps, you need to store that step's RUNPROGRAM_PROCESSID in another temporary macro, then wait on all 3 ids. See attached sample (Step Properties -> Script Editor).


All times are GMT -5. The time now is 09:27 AM.


Copyright © 1999-2023 Kinook Software, Inc.