OPTIONS "C_CALL"
LIBRARY rxunzip
ziperr = "SYNTAX"
zipheading = 1
DO
unzipopen("ZipHandle", "MyTest.zip")
unzipfinditem(ziphandle, "Count")
DO i = 1 TO count
unzipsetcurrentitem(ziphandle, "Info", i)
SAY "Unzipping..." info.0
SAY "Size =" info.1
SAY "Access Time =" info.4
SAY "Creation Time =" info.5
SAY "Last Modified Time =" info.6
unzipgetitem(ziphandle, info.0)
END
CATCH SYNTAX
CONDITION('M')
FINALLY
IF EXISTS("ZIPHANDLE") THEN unzipclose(ziphandle)
END
|