PDA

View Full Version : Log Several Failed Copy Steps.


Scotty
01-31-2006, 01:24 PM
I need to make a list of files that were not copied during a Copy Files step, and then email the list to a user. I tried setting a Failure Step routine, but '0 files copied' did not constitute an error. I am using version 5.7, and do not have the 'Ignore non-existent or blank Source Folder' checked. Any help or direction would be greatly appreciated.

kinook
01-31-2006, 06:13 PM
The Copy Files action will not normally fail if 0 files are copied, but you can cause it to fail in that scenario by adding code to the vbld_StepDone script event. That, and emailing the contents of the failed Copy Files step's Include field, is demonstrated in the attached sample (requires VBP v6).