Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1  
Old 10-20-2020, 10:35 AM
teognost teognost is online now
Registered User
 
Join Date: 05-25-2004
Location: Prague,Czech Republic
Posts: 200
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, 09:23 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
See the attached sample.
Attached Files
File Type: bld EnhancedZip.bld (883 Bytes, 5928 views)
Reply With Quote
  #3  
Old 10-22-2020, 07:31 AM
teognost teognost is online now
Registered User
 
Join Date: 05-25-2004
Location: Prague,Czech Republic
Posts: 200
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, 08:36 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Change

version='10'

to

version='9'

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


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 06:20 AM.


Copyright © 1999-2023 Kinook Software, Inc.