PDA

View Full Version : creating parallel task


praveenadini
10-21-2008, 02:16 PM
Hi,

Can someone let me know how to create parallel task in visual build? I have 2 batch files that need to run at the same time and also need to copy files when one batch file is done processing.

Thanks
Praveen

kinook
10-21-2008, 02:31 PM
Use two Batch File actions with 'Wait for completion' on the Options tab unchecked, followed by a Wait step to wait for either (or one) to finish, followed by a Copy Files action.

http://www.kinook.com/VisBuildPro/Manual/batchfileaction.htm
http://www.kinook.com/VisBuildPro/Manual/waitaction.htm
http://www.kinook.com/VisBuildPro/Manual/chainsample.htm
http://www.kinook.com/VisBuildPro/Manual/copyfilesaction.htm

praveenadini
10-21-2008, 02:57 PM
What i have done is i have created different groups. One group contains the batch file and then i need to copy the files once the batch file is done processing. But the build should continue on to the next group while the batch file(first group) is being process. If i introduce a wait statement in between the batch file execution and copy inside the first group does the build continue onto the next group while executing the batch file? Won't the build wait until the first group is done?

kinook
10-21-2008, 03:02 PM
Put the batch file and copy steps in a separate project, then build that project with a VisBuildPro Project action that doesn't wait.
http://www.kinook.com/VisBuildPro/Manual/visbuildprojaction.htm

praveenadini
10-21-2008, 03:55 PM
that worked. Thanks.