|
ASP Xtreme Evolution
|
ZipThis class intends to help people use the CBZip in an easy way. CBZip brings the power of zip archives to asp. Requirements
About
Summary
extract
Extract the files in the standard way. Parameters
Exampledim oZip set oZip = new Zip oZip.cbZipUri = "http://localhost/cgi-bin/CBZIP.exe" oZip.zipName = Server.mapPath("docs.zip") call oZip.go() oZip.extract("files/") 'Remember that "files/" must exist before calling the extract. set oZip = nothing extractWithoutFolders
Extract the files without caring about their relative path inside the zip. Parameters
Exampledim oZip set oZip = new Zip oZip.cbZipUri = "http://localhost/cgi-bin/CBZIP.exe" oZip.zipName = Server.mapPath("docs.zip") call oZip.go() oZip.extractWithoutFolders("files/") 'Remember that "files/" must exist before calling the extract. set oZip = nothing inspect
Retrive a view from inside the zip. Returns
Exampledim oZip set oZip = new Zip oZip.cbZipUri = "http://localhost/cgi-bin/CBZIP.exe" oZip.zipName = Server.mapPath("docs.zip") call oZip.go() Response.write(oZip.inspect()) set oZip = nothing Zip_FileEach entry of Zip.Files contains an object of this class. This is the class that the user should use to retrieve information from a file in the zip. About
Summary
|
Parses the zip file and create the Zip_File objects.
public sub go()
Extract the files in the standard way.
public sub extract( sTargetPath )
Extract the files without caring about their relative path inside the zip.
public sub extractWithoutFolders( sTargetPath )
Retrive a view from inside the zip.
public function inspect()
Retrieve the file name.
public function fileName()
Retrieve the file extension.
public function fileExt()
Save the file to the hard drive.
public function saveToFile( sPath )