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)
-   -   Log Several Failed Copy Steps. (https://www.kinook.com/Forum/showthread.php?t=1507)

Scotty 01-31-2006 12:24 PM

Log Several Failed Copy Steps.
 
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 05:13 PM

1 Attachment(s)
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).


All times are GMT -5. The time now is 04:02 PM.


Copyright © 1999-2023 Kinook Software, Inc.