Kinook Software Forums

Go Back   Kinook Software Forums > Visual Build Professional > [VBP] General Discussion

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-20-2020, 11:35 AM
teognost teognost is online now
Registered User
 
Join Date: 05-25-2004
Location: Prague,Czech Republic
Posts: 182
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?
Reply With Quote
  #2  
Old 10-21-2020, 10:23 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 5,753
See the attached sample.
Attached Files
File Type: bld EnhancedZip.bld (883 Bytes, 28 views)
Reply With Quote
  #3  
Old 10-22-2020, 08:31 AM
teognost teognost is online now
Registered User
 
Join Date: 05-25-2004
Location: Prague,Czech Republic
Posts: 182
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?
Reply With Quote
  #4  
Old 10-22-2020, 09:36 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 5,753
Change

version='10'

to

version='9'

in the file.
Reply With Quote
  #5  
Old 10-22-2020, 05:05 PM
teognost teognost is online now
Registered User
 
Join Date: 05-25-2004
Location: Prague,Czech Republic
Posts: 182
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!
Reply With Quote
Reply

Tags
zip

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 09:44 PM.


Copyright 1999-2019 Kinook Software, Inc.