free rar
Free rar software
   DOWNLOAD PEAZIP FREE ARCHIVER
ONLINE SUPPORT SOFTWARE'S FAQ
LEARN MORE archival program  freeware zipper  handle 7z rar tar zip files  manage 7z rar tar zip files
free rar software
free rar extractor rar free
rar file rar files unrar tool free rar opener
free rar
FAQ / TIPS & TRICKS > SCRIPTS AND COMMAND LINE SYNTAX EXAMPLES
open source rar

PeaZip command line syntax, scripts



CREATE COMMAND LINE SCRIPTS AND SCHEDULED TASKS

HOW TO USE PEZIP FROM COMMAND LINE

MORE INFORMATION ABOUT SCRIPTING

zip from command line



PeaZip acts as a frontend for many Open Source archiving executables, and due its frontend architecture most tasks possible to accomplish with PeaZip GUI can be exported as a command line script (batch file or shell script), using Save task definition button in Console tab (in archiving/conversion and in extraction interfaces), or rar command examples button in task's window.
From the Console tab the task can be modified and tested.
Users can benefit of those saved scripts (main menu Tools > Saved task definition scripts points to the default PeaZip's script directory) as building blocks to speed up further scripting, or for learning purpose about the underlying executables (i.e. build examples for backend p7zip / 7-Zip command line syntax) , or for fine-tuning the task beyond the GUI's capabilities.

On
Microsoft Windows Vista and newer systems, Schedule tab (in archiving/conversion and extraction interfaces) is intended as a quick way to schedule (in builtin system's Task scheduler) a scripted task defined in Console tab, i.e. to automate backup or restore.

One of the scopes of PeaZip project is offering a simple and homogeneous frontend command line interface to mask the complexity and the differences in CLI syntax of back-end executables.
Quick access to most used PeaZip’s functions is provided passing as first parameter a constant string value identifying the function; those methods can be used invoking PeaZip from scripts or also creating a link to PeaZip executable with the desired first parameter.

PEAZIP'S COMMANDS SYNTAX:

  • -add2archive: add to a new archive and open PeaZip GUI to set archive’s type and options;
    •   -add2archive-add as -add2archive, but add to existing archive (if found)
    •   -add2archive-update as previous, but update older files only
  • -add2pea: add to a new .pea archive;
  • -add2crypt: add to a new encrypted .pea archive;
  • -add2split: raw split a single input file;
  • -add2wipe: securely delete selected file(s);
  • -add2compare: byte to byte compare two files;
  • -add27z: add to a new .7z archive;
  • -add27zmail: add to a new .7z archive and attach it to a mail, requires compatible mail client like i.e. Outlook and Outlook Express
  • -add2separate7z: add each input to a separate new .7z archive;
  • -add2sfx7z: add to a new self extracting 7z archive (.exe);
  • -add2sfx7zmail: add to a new self extracting archive and attach it to a mail, requires compatible mail client like i.e. Outlook and Outlook Express
  • -add2zip: add to a new .zip archive;
  • -add2zipmail: add to a new .zip archive and attach it to a mail, requires compatible mail client like i.e. Outlook and Outlook Express
  • -add2separatezip: add each input to a separate new .zip archive;
  • -ext2browse: open (and browse if applicable) the archive(s) in PeaZip GUI;
  • -ext2browsepath: browse the selected folder (or its path, if a file is selected) in PeaZip
  • -ext2here: extract archive(s) here;
  • -ext2folder: extract archive(s) here, each in a new folder named after the archive;
  • -ext2full: extract archive(s), allowing to specify i/o options, password and keyfile;
  • -ext2to: extract archive(s) to specified folder;
  • -ext2tofolder: extract archive(s) to specified folder, each in a new folder named after the archive;
  • -ext2list: list archive(s) content, to quickly look what is in the archive;
  • -ext2test: test archive(s) content;
  • -ext2main: extract archives from main applications "Archive extraction" interface;
  • -ext2commandprompt: open the command prompt in the selected folder (or in its path, if a file is selected)
  • -ext2openpwtest requires password as paramstr(2) (always delimited) and archive’s full name as paramstr(3): try to list the archive and terminate with exit code 0 if archive is not encrypted, 1 if it is encrypted, 2 if it is non readable (corrupted or with encrypted file list), -1 if archive is not found.
  • -peazipreset: reset PeaZip configuration, as Options > Reset button; can resolve unexpected problems with configuration, restarting the application with factory settings
-add2archive, -ext2main and -ext2browse open the PeaZip GUI, to allow further user’s interaction

On MS Windows platforms PeaZip can also send multiple input to a single instance using semaphores and temporary files (temp files are deleted automatically but in case of any kind of problem there is a reset switch in Options > Settings first tab to remove any possible leftover), this allows the command verb to be used in static registry entries (i.e. in Windows systems context menu) to send multiple input to a single instance:
  • -add2multi works like -add2archive
  • -add2multi7z works like -add27z, but stays in the archiving interface until the user click "Ok" button; it can be modified in -add2multi7zfastest, *normal, or *ultra to directly set the compression to fastest, normal or ultra levels presets (the compression method used is the one defined by the user)
  • -add2multizip works like -add2zip, but stays in the archiving interface until the user click "Ok" button; likewise the previous switch it can be modified to *fastest, *normal, or *ultra compression level
  • -add2multisfx works like -add2sfx7z, but stays in the archiving interface until the user click "Ok" button
  • -ext2multi works like - ext2main
While the instance accepting files is open, it is possible to continue adding input from the same directory selecting objects and using context menu’s entry, as an alternative to dragging the object to the application window that might be less handy if the workspace is crowded.

SYNTAX EXAMPLES

  • peazip -add2zip file1 file2 directory3 will add specified objects (file1 and file2, and all content of directory3) to a .zip archive; using -add27z instead of -add2zip will perform the same task but will result in a .7z archive (-add2pea will result in a .pea archive, -add2sfx7z will result in an self extracting executable and so on).
  • peazip -ext2here archive1 will extract archive1 in its path; using -ext2folder archive1 will be extracted to a new folder named "archive1" in the same path of archive1 file
More information about scripting

External online resources: batch file.bat file for Microsoft Windows and shell scriptunix shell commands Wikipedia definitions

Topics and serach suggestions: PeaZip command line syntax and usage for scripting, untar unzip unrar command line syntax by example, 7-Zip command line examples, WinRar syntax, 7zip, tar script, how to schedule backup and restore tasks, programmatically export compression and extraction job definition.


RELATED & SIMILAR PAGES
7Z FORMAT EXTRACTION

DETECT FILE CORRUPTION

DECOMPRESS ACE FILES
 
EXTRACT ZIP FILE

EXTRACT ZIPX FILE

HOW TO ENCRYPT FILES & FOLDERS

MERGE SPLIT FILES

MISSING PASSWORD
 
OPEN ARC FILES

OPEN CAB FILES

OPEN ISO FILES

OPEN RAR FILES

OPEN TAR FILES

OPEN ENCRYPTED ARCHIVE
 
OPTIMIZE FILE COMPRESSION

RAR COMMAND
RAR FILE CONVERTER

SECURE DELETE

SCAN RAR TAR ZIP ARCHIVES
Tag Cloud
7z command line 7z format ace archive ace syntax backup script syntax cab file convert existing archive command line compression compress from CLI PeaZip free archiver rar command line examples rar files tar archives tar command syntax zip command line zip file zip scripting examples zipx format

command line rar

PeaZip is a free cross-platform file archiver that provides an unified portable GUI for many Open Source technologies like 7-Zip, FreeArc, PAQ, UPX...
Create 7Z, ARC, BZ2, GZ, *PAQ, PEA, QUAD/BALZ, TAR, UPX, WIM, XZ, ZIP files
Open and extract over 180 archive types: ACE, ARJ, CAB, DMG, ISO, LHA, RAR, UDF, ZIPX files and more...
Features of PeaZip includes extract, create and convert multiple archives at once, create self-extracting archives, split/join files, strong encryption with two factor authentication, encrypted password manager, secure deletion, find duplicate files, calculate hashes, export job definition as script.

command line rar extraction






download rar software
DOWNLOADS
free rar archiver
All PeaZip downloads
PeaZip for Windows 32 bit
PeaZip for Windows 64 bit
PeaZip Portable
PeaZip Linux/BSD
online rar program support
SUPPORT
how do i zip unzip files
Online help
Frequently Asked Questions
More information





open rar files
DONATE
how to manage rar archive
Support PeaZip project, or donate to FAO, UNICEF and UNESCO from donation page

© PeaZip srl: TOS, Privacy

Developer 7z rar zip file archiver
Software repository
download rar software
PeaZip Wiki
online rar zip wiki
Releases Feed free rar archiver