Project

General

Profile

Actions

Feature #3517

closed

ZIP & UNZIP Support

Added by westor (GR) over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Scripting
Target version:
Start date:
06/28/2017
Due date:
% Done:

0%

Estimated time:
Operative System:
All

Description

Hello,

I wanna request an feature as i can see the Windows has it's own API to use for, requesting to add ZIP/UNZIP support as this scripting function is very useful especially to avoid using external sources of .dll or .exe i will provide some of my ideas that how is gonna be useful to be included, also i am not sure if the Windows can support more ZIP extentions like .cab .7z and more.

ZIP Function:

Command Part:

/zip [-cohml] <name> <file or folder> <destination directory> [password]

-c - Stops and closes the zip progress.
-o - Overwrite file it if already exists.
-h - High compression ratio.
-m - Medium compression ratio.
-l - Low compression ratio.

Examples:

/zip -oh testing $qt($adiircdir) $qt($sysdir(downloads) $+ myADI.zip)
/zip -oh testing $qt($adiircdir) $qt($sysdir(downloads) $+ myADI.zip) testpassword
/zip -ol testing $qt($adiircexe) $qt($sysdir(desktop) $+ AdiIRC.zip)
/zip -c testing

Event Part:

on <level>:ZIP:name:<commands>

on *:ZIP:testing:echo -ag ZIP progress of $zip name has been completed, started zipping from $zip($zip).from to $zip($zip).to direction.

Identifiers Part:

$zip - Returns the zip name during a on ZIP event.
$zip(name,[N]) - Returns information about a the Nth zip.
$ziperr - Returns any error during a on ZIP event.

Properites: .name .from .to .pass .ratio

UNZIP Function:

Command Part:

/unzip [-co] <name> <file> <destination directory> [password]

-c - Stops and closes the unzip progress.
-o - Overwrite file it if already exists.

Examples:

/unzip -o testing $qt($sysdir(downloads) $+ myADI.zip) $qt($sysdir(desktop))
/unzip -o testing $qt($sysdir(downloads) $+ myADI.zip) $qt($sysdir(desktop)) testpassword
/unzip -c testing

Event Part:

on <level>:UNZIP:name:<commands>

on *:UNZIP:testing:echo -ag UNZIP progress of $unzip name has been completed, started unzipping from $unzip($unzip).from to $unzip($unzip).to direction.

Identifiers Part:

$unzip - Returns the zip name during a on UNZIP event.
$unzip(name,[N]) - Returns information about a the Nth unzip.
$unziperr - Returns any error during a on UNZIP event.

Properites: .name .from .to .pass

Actions

Also available in: Atom PDF