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

User login

Frontpage Sponsor


Google search

For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
Installation Wizard into new VRC
Manual into existing VRC
Manual into new VRC
Total votes: 49

Baanboard at LinkedIn

Reference Content

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

Hello Experts,

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

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

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

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

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

	| clean up
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,
Reply With Quote
Sponsored Links
Old 26th December 2016, 11:17
bdittmar's Avatar
bdittmar bdittmar is offline
Join Date: Apr 2002
Location: Germany, 50.584097,8.544078
Posts: 1,720
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 !

have a look at :

Reply With Quote
Old 26th December 2016, 18:37
oirfeodent's Avatar
oirfeodent oirfeodent is offline
Join Date: Jun 2016
Posts: 53
oirfeodent is on a distinguished road
Baan: Baan - DB: DB - OS: OS
Originally Posted by frenny View Post
Hello Experts,

My requirement is to zip entire folder .i have tried to use infor 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

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 22:42
Undocumented Functions & Variables george7a Tools Development 81 30th September 2015 11:35
How to call AFS in sp24? PV Ramone AFS/DDC/OLE: Function servers 4 2nd September 2008 11:06
Compile error,help! gavin_wusj Tools Development 5 5th April 2005 09:09

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

©2001-2018 - -