Syntax:

-extract archive destination {options}


This command extracts files from the specified archive.

Required parameters:
archive
This is the filename of the archive that you want to decompress - Example: C:\Test.zip

destination
This is the destination folder where files will get extracted to.
If you want to extract files in the same folder where your archive is stored, you must specify the placeholder -curr.
NEVER LEAVE BLANK the destination parameter!
If you want to extract files to a special system folder, you can use one of the following placeholder, that will be converted automatically to the related path in the filesystem:

  • [CDR] : folder for CD burning features (Windows XP)
  • [DOCS] : My Documents folder
  • [MUSIC] : My Music folder (Windows XP)
  • [PICS] : My Pictures folder (Windows 2000/XP)
  • [VIDEO] : My Video folder (Windows XP)
  • [FAV] : Internet Explorer favorites folder
  • [SYS] : Windows System folder (\Windows\System or \Windows\System32, depending from Windows version)
  • [WIN] : Windows folder
  • [TEMP] : Windows temporary folder
  • [CURR] : current folder
  • [DESKTOP] : Desktop folder
  • [PPC] : ActiveSync┬« synchronization folder

The placeholders listed above can be inserted in a path, like the following example:

[desktop]\Fold_1\Fold_2\Fold_3\

(in Windows 98) will become:

C:\Windows\Desktop\Fold_1\Fold_2\Fold_3\

and files will get extracted to subfolder Fold_3.


Options:


R[ 0 | 1 ]

 

This parameter allows to extract files from subfolders stored in the archive with a recursive scan.

"R" possible values are:

  • 0 - subfolders are NOT extracted
  • 1 - subfolders ARE extracted

The default value is R0 and it will be selected if the "R" parameter is not specified.

P[ Password | 0 ]

This parameter allows to specify the password that must be used in order to decompress the archive.

If "P" is followed by a password, that will be used by the program to decrypt the files being extracted; if the password supplied doesn't match the required one, the program will ask to user for a new password. The password may be asked again if some file has not been encrypted with the supplied one.

 

F[ 0 | 1 ]

Restore paths in the destination folder.

"F" possible values:

  • 0 - paths will be ignored
  • 1 - paths will be rebuilt in the destination folder

Default value is F1 and it will be selected automatically if "F" is not specified.

N[ 0 | 1 ]

This parameter creates a subfolder in the destination folder and labels it after archive filename.

Possible values of "N" are:

  • 0 - option DISABLED
  • 1 - option ENABLED

Default value is N0 and it will be automatically selected if "N" is not specified in the command line.

O[ 0 | 1 | 2 ]

Sets the program behaviour when it is going to extract files that already exist in the destination folder.

Possible values of "O" are:

  • 0 - always overwrite existing files
  • 1 - skip files
  • 2 - ask user

Default value is O2 and it will be automatically selected if "O" is not specified in the command line.

 

+file

 

This parameter specifies which files (or group of files) must be included in the extraction procedure. It is possible to specify also filenames with wildcards like * and ? .

If the command line misses this parameter, then all files will get extracted from the specified archive.

-file

This parameter specifies which files (or group of files) must be excluded from the extraction procedure. It is possible to use filenames with wildcards like * and ? .

If the command line misses the "-" paramatere, then no file will be excluded.

@(files list)

If you need to specify multiple files to include and/or exclude from the extraction procedure, then you can use the "+" and the "-" parameters in a text file, and you can drive the program to read that list through this parameter: you just have to specify the path and filename of the text file that contains the list of files being processed.

The text file should have a structure like the following one:

+file > Include file
-file > Exclude file

D[ A | H | R | S | Z | X ]
 


Sets the program to extract just files that have specific attributes. It is possible to specify one or a combination of the following attributes:

  • A - Archive file
  • H - Hidden file
  • R - Read-only file
  • S - System file
  • Z - File without attributes
  • X - Any attribute (this value overrides all the others)

The default value is DX and it will be automatically selected if "D" is not specified in the command line.





Created with the Personal Edition of HelpNDoc: Free PDF documentation generator