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)
-   -   Enhanced Zip Files step not failing (https://www.kinook.com/Forum/showthread.php?t=5689)

teognost 10-20-2020 10:35 AM

Enhanced Zip Files step not failing
 
I have an Enhanced zip files step and if there is a problem-for example Source folder not found-the step is not failing (it appears successful):

\\VM1\Folder1\ -> \\VM2\Backup\MyFile.zip
The file was not found.
0 file(s) processed
10/20/2020 5:26:01 PM: Build successfully completed (elapsed = 00:00:00).
I would expect the step to fail and failure step to be built.
Could you please tell me how can i achieve this?

kinook 10-21-2020 09:23 AM

1 Attachment(s)
See the attached sample.

teognost 10-22-2020 07:31 AM

I am using VBP 9.7 and cannot open your sample.I installed VBP 10.3 trial version but i get this message "The evaluation version is limited to 50 steps." so cannot test it.Could you please send me the sampe compatible with VBP 9.7?

kinook 10-22-2020 08:36 AM

Change

version='10'

to

version='9'

in the file.

teognost 10-22-2020 04:05 PM

Thanks,i tried with the version change and it worked.
I compared my step with the one from sample,they both looked the same but yours has the correct behaviour failing if source folder does not exist.I looked deeper and i found you implemented a script for this step:
Sub vbld_StepDone()

If Not vbld_FSO.FolderExists(vbld_StepProp("Source", vbString)) Then Step.BuildStatus = vbldStepStatFailed

End Sub

Thanks a lot for your help!


All times are GMT -5. The time now is 04:22 AM.


Copyright © 1999-2023 Kinook Software, Inc.