Back

ZipFolder

Hello World

Recursively compresses a local folder to a zip file.

app.ZipFolder( source, destination )

See Also: ZipFile, UnzipFile

Example - Zip Folder

function OnStart()
{
    var folder = "/sdcard/DroidScript/Hello World";
    app.ZipFolder( folder, folder + ".zip" );
    app.ShowPopup( "Compressed to " + folder + ".zip" );
}
Copy All       Run      
string: path to file or folder ( “/absolute/...” or “relative/...” )