Back

ZipFile

Hello World

Compresses a local file to a zip file.

app.ZipFile( source, destination )

See Also: ZipFolder

Example - Zip File

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