Fisheries and Oceans Canada / Pêches et Océans Canada - Government of Canada / Gouvernement du Canada Fisheries and Oceans Canada / Pêches et Océans Canada - Government of Canada / Gouvernement du Canada
 
Français Contact Us Help Search Canada Site
Home What's New DFO National Site Map Media

Fisheries & Oceans
 
 
Maritimes Region
Fishing Industry
General Public
Marine & Oceans Industry
Media
Students and Teachers
Scientists and Researchers
 
AconIcon ACON       Home/Topics   |   Commands

File Compression


The File Compression commands include:
Zip.


Zip

This command creates a compressed zip file of the files that are passed as parameters. These files archived in the created zip file are compressed to save space. The created Zip file may contain one or more files.


There are 2 parameters:
ZipName- string representing the name of the compressed zip file to be created
filename- the name of the source file to compress
OR
FilenameMatrix- a character matrix of the multiple source files to compress.

Zip("ZipName", "filename");
Zip("ZipName", FilenameMatrix);

/* compress the file Test.jpeg */
Zip("C:/test.zip","C:/JPEGs/Test.jpg");

/* compress the 3 jpg files: Test1, Test2 and Test3 */
FilesMatrix = strfold("C:/JPEGs/Test1.jpg,C:/JPEGs/Test2.jpg, C:/JPEGs/Test3.jpg",",");
Zip("C:/TestZipFiles.zip", FilesMatrix);


AconIcon ACON       Home/Topics   |   Commands



Last Modified : 2003-11-19