« Aide

Command Line Parameters


# Bandizip.exe <archive> 
# Bandizip.exe <command> [<switches>...] <archive> [<files>...] [<path_to_extract>]
# Bandizip.exe <bcommand> [<switches>...] [<files>...]

<archive>

Perform the default task specified in Settings. (Usually open an archive.)


<command>

a Add files to archive
x Extract files with full paths
t Test integrity of archive
d Delete files from archive
c Create new archive (Overwrite existing one with the same name)
cd Display “New Archive” dialog box

<bcommand> Batch Commands

bc Compress multiple files/folders with the name of each.
If existing archives have the same name, (archive-name) (2), (archive-name) (3) … are created. If a destination folder is not specified, the archives are created in the folder where each of the original files exists.
bx Extract files from multiple archives to a destination folder.
If a destination folder is not specified, the files are extracted to the folder where each of the archives exists.
bt Test integrity of each archive.

<switches>

- Stop switch parsing
-l:<0...9> Set compression level (0: store, 5: default, 9: maximum)
-r- Disable recurse subdirectories (default)
-r Enable recurse subdirectories
-aoa Overwrite existing files without prompt
-aos Skip and not overwrite existing files
-aou Auto-rename extracted files
For example, name.txt → name (2).txt
-sfx:[{name}] Create SFX archive and set full paths of SFX STUB
-zopfli Use Zopfil as default encoder (slow)
-p:{password} Set password for archive
-o:{dir} Specify destination folder
-y Assume Yes on all queries
-y2 Close (de)compression windows on task completion if no error occurs
-fmt:{fmt} Specify archive format
(zip, zipx, exe, tar, tgz, lzh, iso, 7z, gz, xz)
-v:{size} Specify volume size
(-v:1000000 -v:1440k -v:100MB ...)

<switches> (Only in Bandizip)

-email Compress and email
-target:dlg Display a dialog box asking to specify a destination folder, and extract files to an archive-name folder in the destination folder.
If any folder is specified with -o, it is the default folder of the dialog box.
-target:auto Extract files to a destination folder using Extract Here (Smart) feature.
If a destination folder is not specified, the files are extracted to the folder where each of the archives exists.
-target:name Extract files to an archive-name folder in a destination folder.
If a destination folder is not specified, the files are extracted to the archive-name folder in the folder where each of the archives exists.

Examples

Open archive

Bandizip.exe sample.zip

Create new archive (Overwrite existing one with the same name)

Bandizip.exe c c:\sample.zip c:\src\

Bandizip.exe c c:\sample.zip c:\src1\ c:\src2\

Add files to archive

Bandizip.exe a c:\sample.zip c:\src\sample.txt

Bandizip.exe a c:\sample.zip c:\src\sample1.txt c:\src\sample2.txt

Bandizip.exe a c:\sample.zip c:\src\*.txt c:\src\*.jpg

Delete files from archive

Bandizip.exe d c:\sample.zip sample.txt

Bandizip.exe d c:\sample.zip *.txt

Extract files to destination folder

Bandizip.exe x -o:c:\dest\ c:\sample.zip

Add files to archive, set password as Passw0rd, overwrite existing files without prompt, and close the dialog box

Bandizip.exe a -y -p:Passw0rd test.zip c:\src d:\src

Extract files from multiple archives to one folder

Bandizip.exe bx -o:c:\dst a.zip b.zip c.zip

Extract files from multiple archives to a destination folder using Extract Here (Smart) feature

Bandizip.exe bx -o:c:\dst -target:auto a.zip b.zip c.zip

Compress multiple folders (a,b c) with the name of each folder (a.zip b.zip c.zip)

Bandizip.exe bc a b c