Compress
This class is used for creating or updating archives. The class contains thirteen variables and one function. Click on a variable or function below to view its information.
 
Variables
 

Archive

 

Type

 

Compression

 

WorkingDir

 

Data

 

Password

 

DateExtension

 

TimeExtension

 

Overwrite

 

Recurse

 

StoreFolderNames

 

IncludeHiddenFiles

 

FileList

 
Functions
 

DoCompress

 
Example:

function main()
{
     var Comp = new Compress();

     Comp.Archive = "C:\\My_backup.zip";
     Comp.Type = "ZIP";
     Comp.Compression = 3;
     Comp.WorkingDir = "C:\\";
     Comp.Data = "file.txt,file2.txt,file3.txt";
     Comp.Password = "";
     Comp.DateExtension = 0;
     Comp.TimeExtension = 0;
     Comp.Overwrite = 1;
     Comp.Recurse = 0;
     Comp.StoreFolderNames = 1;
     Comp.IncludeHiddenFiles = 1;

     Comp.DoCompress();
}