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):
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")
ret = zipinfo.add(handle, "test", TFILE)
| archive zipinfo to target
result = zipfile.build(handle)
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.