Baanboard.com

Go Back   Baanboard.com > Forum > Baan Quick Support: Functional & Technical > Tools Development

User login

Frontpage Sponsor

Main

Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
37%
Installation Wizard into new VRC
39%
Manual into existing VRC
3%
Manual into new VRC
21%
Total votes: 38

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 26th December 2016, 06:54
frenny's Avatar
frenny frenny is offline
Member
 
Join Date: Oct 2013
Posts: 50
frenny is on a distinguished road
Baan: ERP LN - DB: sqlserver 2012 - OS: winxp
zipfile.build return -2

Hello Experts,

My requirement is to zip entire folder .i have tried to use infor zipfile.build in -built function but it is returning -2.
I have also tried the example given in proguide of LN for zipfile.build but same result.

Here is my code (same as proguide example):
Code:
	zipfile = bse.dir$() & "\bin" & "\eXtend" & "\applic\" & "myzipfile.zip"

	| add selection to zipinfo
	handle = zipinfo.new(zipfile)
	if handle = 0 then
		message("Error while creating new zipinfo")
	endif

	ret = zipinfo.add(handle, "test", TFILE)

	| archive zipinfo to target
	result = zipfile.build(handle)
	if result <> 0 then
		message("Error while building zipfile")
	endif

	| clean up
	zipinfo.delete(handle)
i have also tried rar.exe using run.prog command but that compressed some random temp file then actual file in zip folder.

Thank you,
frenny
Reply With Quote
Sponsored Links
  #2  
Old 26th December 2016, 12:17
bdittmar's Avatar
bdittmar bdittmar is offline
Guru
 
Join Date: Apr 2002
Location: Germany, 50.584097,8.544078
Posts: 1,652
bdittmar will become famous soon enough
Baan: 2.2/3.1/4c4/LN6.1 FP6/FP9/HiDox - DB: tbase, ms-sql7, oracle10gV1, 11g - OS: HP-UX, W2K3, SLES
Look at !

Hello,
have a look at :

http://www.baanboard.com/baanboard/s...=zipfile.build

Regards
__________________
//Bernd
Reply With Quote
  #3  
Old 26th December 2016, 19:37
oirfeodent's Avatar
oirfeodent oirfeodent is offline
Member
 
Join Date: Jun 2016
Posts: 51
oirfeodent is on a distinguished road
Baan: Baan - DB: DB - OS: OS
Quote:
Originally Posted by frenny View Post
Hello Experts,

My requirement is to zip entire folder .i have tried to use infor zipfile.build in -built function but it is returning -2.
-2 refers to Error ENOENT - No such file or directory.

Validate the presence of file.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error while opening opening purchase order naga ch Tools Administration & Installation 6 17th June 2016 23:42
Undocumented Functions & Variables george7a Tools Development 81 30th September 2015 12:35
How to call AFS in sp24? PV Ramone AFS/DDC/OLE: Function servers 4 2nd September 2008 12:06
Compile error,help! gavin_wusj Tools Development 5 5th April 2005 10:09


All times are GMT +2. The time now is 04:31.


©2001-2017 - Baanboard.com - Baanforums.com