How to zip files - Compress and uncompress files

Zip tool Archives s

Zip tool Archives s

Archive Utility is Mac's built-in tool that handles format. To unzip a file, follow these steps: Double-click on the. Express Zip is one of the most stable, easy-to-use and comprehensive file archive and compression tools available. Create, manage and extract zipped files. Previously these switches could filter files by size only in RAR and ZIP archives. 18. Newer folder selection dialog is invoked when pressing "Browse".

youtube video

How To Unzip A Compressed File Folder

Zip tool Archives s - not


To extract all FORTRAN and C source files--*.f, *.c, *.h, and Makefile--into the /tmp directory:

unzip "*.[fch]" Makefile -d /tmp

(the double quotes are necessary only in Unix (and PTC MKS Toolkit shells) and only if globbing is turned on). To extract all FORTRAN and C source files, regardless of case (e.g., both *.c and *.C, and any makefile, Makefile, MAKEFILE or similar):

unzip -C "*.[fch]" makefile -d /tmp

To extract any such files but convert any uppercase MS-DOS or VMS names to lowercase and convert the line-endings of all of the files to the local standard (without respect to any files that might be marked ``binary''):

unzip -aaCL "*.[fch]" makefile -d /tmp

To extract only newer versions of the files already in the current directory, without querying (NOTE: be careful of unzipping in one timezone a zipfile created in another--ZIP archives other than those created by Zip 2.1 or later contain no timezone information, and a ``newer'' file from an eastern timezone may, in fact, be older):

unzip -fo sources

To extract newer versions of the files already in the current directory and to create any files not already there (same caveat as previous example):

unzip -uo sources

To display a diagnostic screen showing which and options are stored in environment variables, whether decryption support was compiled in, the compiler with which was compiled, etc.:

unzip -v

In the last five examples, assume that or is set to . To do a singly quiet listing:

unzip -l

To do a doubly quiet listing:

unzip -ql

(Note that the ``.zip'' is generally not necessary.) To do a standard listing:

unzip --ql


unzip -l-q


unzip -l--q

(Extra minuses in options don't hurt.)


The current maintainer, being a lazy sort, finds it very useful to define a pair of aliases: tt for ``unzip -tq'' and ii for (or ). One may then simply type ``tt zipfile'' to test an archive, something that is worth making a habit of doing. With luck will report ``No errors detected in compressed data of ,'' after which one may breathe a sigh of relief.

The maintainer also finds it useful to set the environment variable to ``'' and is tempted to add ``'' as well. His variable is set to ``''.


The exit status (or error level) approximates the exit codes defined by PKWARE and takes on the following values, except under VMS:

normal; no errors or warnings detected.

one or more warning errors were encountered, but processing completed successfully anyway. This includes zipfiles where one or more files was skipped due to unsupported compression method or encryption with an unknown password.

a generic error in the zipfile format was detected. Processing may have completed successfully anyway; some broken zipfiles created by other archivers have simple work-arounds.

a severe error in the zipfile format was detected. Processing probably failed immediately.

unzip was unable to allocate memory for one or more buffers during program initialization.

unzip was unable to allocate memory or unable to obtain a tty to read the decryption password(s).

unzip was unable to allocate memory during decompression to disk.

unzip was unable to allocate memory during in-memory decompression.

[currently not used]

the specified zipfiles were not found.


invalid options were specified on the command line.


no matching files were found.


the disk is (or was) full during extraction.


the end of the ZIP archive was encountered prematurely.


the user aborted unzip prematurely with control-C (or similar)


testing or extraction of one or more files failed due to unsupported compression methods or unsupported decryption.


no files were found due to bad decryption password(s). (If even one file is successfully processed, however, the exit status is 1.)

VMS interprets standard Unix (or PC) return values as other, scarier-looking things, so unzip instead maps them into VMS-style status codes. The current mapping is as follows: 1 (success) for normal exit, 0x7fff0001 for warning errors, and (0x7fff000? + 16*normal_unzip_exit_status) for all other errors, where the `?' is 2 (error) for unzip values 2, 9-11 and 80-82, and 4 (fatal error) for the remaining ones (3-8, 50, 51). In addition, there is a compilation option to expand upon this behavior: defining RETURN_CODES results in a human-readable explanation of what the error status means.


Multi-part archives are not yet supported, except in conjunction with zip. (All parts must be concatenated together in order, and then ``zip -F'' (for zip 2.x) or ``zip -FF'' (for zip 3.x) must be performed on the concatenated archive in order to ``fix'' it. Also, zip 3.0 and later can combine multi-part (split) archives into a combined single-file archive using ``zip -s- inarchive -O outarchive''. See the zip 3 manual page for more information.) This will definitely be corrected in the next major release. Archives read from standard input are not yet supported, except with funzip (and then only the first member of the archive can be extracted).

Archives encrypted with 8-bit passwords (e.g., passwords with accented European characters) may not be portable across systems and/or other archivers. See the discussion in DECRYPTION above.

's (``more'') option tries to take into account automatic wrapping of long lines. However, the code may fail to detect the correct wrapping locations. First, TAB characters (and similar control sequences) are not taken into account, they are handled as ordinary printable characters. Second, depending on the actual system / OS port, unzip may not detect the true screen geometry but rather rely on "commonly used" default dimensions. The correct handling of tabs would require the implementation of a query for the actual tabulator setup on the output console.

Dates, times and permissions of stored directories are not restored except under Unix and PTC MKS Toolkit. (On Windows NT and successors, timestamps are now restored.)

[MS-DOS] When extracting or testing files from an archive on a defective floppy diskette, if the ``Fail'' option is chosen from DOS's ``Abort, Retry, Fail?'' message, older versions of unzip may hang the system, requiring a reboot. This problem appears to be fixed, but control-C (or control-Break) can still be used to terminate unzip.

Under DEC Ultrix, unzip would sometimes fail on long zipfiles (bad CRC, not always reproducible). This was apparently due either to a hardware bug (cache memory) or an operating system bug (improper handling of page faults?). Since Ultrix has been abandoned in favor of Digital Unix (OSF/1), this may not be an issue anymore.

[Unix and PTC MKS Toolkit] Unix special files such as FIFO buffers (named pipes), block devices and character devices are not restored even if they are somehow represented in the zipfile, nor are hard-linked files relinked. Basically the only file types restored by unzip are regular files, directories and symbolic (soft) links.

[OS/2] Extended attributes for existing directories are only updated if the -o (``overwrite all'') option is given. This is a limitation of the operating system; because directories only have a creation time associated with them, unzip has no way to determine whether the stored attributes are newer or older than those on disk. In practice this may mean a two-pass approach is required: first unpack the archive normally (with or without freshening/updating existing files), then overwrite just the directory entries (e.g., ``unzip -o foo */'').

[VMS] When extracting to another directory, only the [.foo] syntax is accepted for the -d option; the simple Unix foo syntax is silently ignored (as is the less common VMS foo.dir syntax).

[VMS] When the file being extracted already exists, unzip's query only allows skipping, overwriting or renaming; there should additionally be a choice for creating a new version of the file. In fact, the ``overwrite'' choice does create a new version; the old version is not overwritten or deleted.


The primary Info-ZIP authors (current semi-active members of the Zip-Bugs workgroup) are: Ed Gordon (Zip, general maintenance, shared code, Zip64, Win32, Unix, Unicode); Christian Spieler (UnZip maintenance coordination, VMS, MS-DOS, Win32, shared code, general Zip and UnZip integration and optimization); Onno van der Linden (Zip); Mike White (Win32, Windows GUI, Windows DLLs); Kai Uwe Rommel (OS/2, Win32); Steven M. Schweda (VMS, Unix, support of new features); Paul Kienitz (Amiga, Win32, Unicode); Chris Herborth (BeOS, QNX, Atari); Jonathan Hudson (SMS/QDOS); Sergio Monesi (Acorn RISC OS); Harald Denker (Atari, MVS); John Bush (Solaris, Amiga); Hunter Goatley (VMS, Info-ZIP Site maintenance); Steve Salisbury (Win32); Steve Miller (Windows CE GUI), Johnny Lee (MS-DOS, Win32, Zip64); and Dave Smith (Tandem NSK).

The following people were former members of the Info-ZIP development group and provided major contributions to key parts of the current code: Greg ``Cave Newt'' Roelofs (UnZip, unshrink decompression); Jean-loup Gailly (deflate compression); Mark Adler (inflate decompression, fUnZip).

The author of the original unzip code upon which Info-ZIP's was based is Samuel H. Smith; Carl Mascott did the first Unix port; and David P. Kirschbaum organized and led Info-ZIP in its early days with Keith Petersen hosting the original mailing list at WSMR-SimTel20. The full list of contributors to UnZip has grown quite large; please refer to the CONTRIBS file in the UnZip source distribution for a relatively complete version.


v1.2 15 Mar 89 

Samuel H. Smith

v2.0 9 Sep 89 

Samuel H. Smith

v2.x fall 1989 

many Usenet contributors

v3.0 1 May 90 

Info-ZIP (DPK, consolidator)

v3.1 15 Aug 90 

Info-ZIP (DPK, consolidator)

v4.0 1 Dec 90 

Info-ZIP (GRR, maintainer)

v4.1 12 May 91 


v4.2 20 Mar 92 

Info-ZIP (Zip-Bugs subgroup, GRR)

v5.0 21 Aug 92 

Info-ZIP (Zip-Bugs subgroup, GRR)

v5.01 15 Jan 93 

Info-ZIP (Zip-Bugs subgroup, GRR)

v5.1 7 Feb 94 

Info-ZIP (Zip-Bugs subgroup, GRR)

v5.11 2 Aug 94 

Info-ZIP (Zip-Bugs subgroup, GRR)

v5.12 28 Aug 94 

Info-ZIP (Zip-Bugs subgroup, GRR)

v5.2 30 Apr 96 

Info-ZIP (Zip-Bugs subgroup, GRR)

v5.3 22 Apr 97 

Info-ZIP (Zip-Bugs subgroup, GRR)

v5.31 31 May 97 

Info-ZIP (Zip-Bugs subgroup, GRR)

v5.32 3 Nov 97 

Info-ZIP (Zip-Bugs subgroup, GRR)

v5.4 28 Nov 98 

Info-ZIP (Zip-Bugs subgroup, SPC)

v5.41 16 Apr 00 

Info-ZIP (Zip-Bugs subgroup, SPC)

v5.42 14 Jan 01 

Info-ZIP (Zip-Bugs subgroup, SPC)

v5.5 17 Feb 02 

Info-ZIP (Zip-Bugs subgroup, SPC)

v5.51 22 May 04 

Info-ZIP (Zip-Bugs subgroup, SPC)

v5.52 28 Feb 05 

Info-ZIP (Zip-Bugs subgroup, SPC)

v6.0 20 Apr 09 

Info-ZIP (Zip-Bugs subgroup, SPC)


All UNIX systems. Windows Server 2012. Windows 8.1. Windows Server 2012 R2. Windows 10. Windows Server 2016. Windows Server 2019.

is also available other systems including MSDOS, OS/2, Minix, Atari, Macintosh, Amiga, and Acorn RISC OS.


PTC MKS Toolkit for Power Users
PTC MKS Toolkit for System Administrators
PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


, , , , , , , , , , , , , , , , , ,

PTC MKS Toolkit Backup and Tape Handling Solutions Guide

Источник: []

How can you zip or unzip from the script using ONLY Windows' built-in capabilities?

I've been looking to answer this exact question and from my research, DiryBoy's response seems to be accurate.

I found the compact.exe program compresses files but not to create a highly compressed file (or set of files). It is similar to the option you get when right clicking on a drive letter or partition in Windows. You get the option to do cleanup (remove temp files, etc) as well as compress files. The compressed files are still accessible but are just compressed to create space on a drive that is low on space.

I also found compress.exe which I did happen to have on my computer. It isn't natively on most windows machines and is part of the 2003 resource kit. It does make a zipped file of sorts but it is really more similar to files from a windows setup disk (has the underscore as the last character of the file extension or name). And the extract.exe command extracts those files.

However, the mantra is, if it can be done natively via the GUI then there is likely a way to do it via batch, .vbs, or some other type of script within the command line. Since windows has had the 'send to' option to create a zip file, I knew there had to be a way to do it via command line and I found some options.

Here is a great link that shows how to zip a file using windows native commands.

I tested it with a directory containing multiple nested files and folders and it worked perfectly. Just follow the format of the command line.

There is also a way to unzip the files via command line which I found as well. One way, just brings open an explorer window showing what the content of the zipped file is. Some of these also use Java which isn't necessarily native to windows but is so common that it nearly seems so.

How to unzip a file using the command line?

Источник: []


[] file[.zip][file(s) ...] [xfile(s) ...] [exdir]


will list, test, or extract files from a ZIP archive, commonly found on MS-DOS systems. The default behavior (with no options) is to extract into the current directory (and subdirectories below it) all files from the specified ZIP archive. A companion program, , creates ZIP archives; both programs are compatible with archives created by PKWARE's PKZIP and PKUNZIP for MS-DOS, but in many cases the program options or default behaviors differ.

If the archive contains Unix or Win32 symbolic links, these will be displayed (a 0x80000 in the non-MSDOS external file attributes field with both Unix/Linux/MacOS and PTC MKS Toolkit) or restored to NTFS volumes to point to the same names (existing or not existing) as they were in the source file system. Where the source is on an NTFS volume and target does not exist, a file symbolic link will be created.



mode. If the first option on the command line is , the remaining options are taken to be options. See the appropriate manual page for a description of these options.


[OS/2, Unix (but not PTC MKS Toolkit) DLL] print extended help for the DLL's programming interface (API).


extract files to stdout/screen (``CRT''). This option is similar to the option except that the name of each file is printed as it is extracted, the option is allowed, and ASCII-EBCDIC conversion is automatically performed if appropriate. This option is not listed in the usage screen.


freshen existing files, i.e., extract only those files that already exist on disk and that are newer than the disk copies. By default queries before overwriting, but the option may be used to suppress the queries. Note that under many operating systems, the (timezone) environment variable must be set correctly in order for and to work properly (under Unix the variable is usually set automatically). PTC MKS Toolkit will fall back to the system timezone in the registry if is not set. The reasons for this are somewhat subtle but have to do with the differences between DOS-format file times (always local time) and Unix-format times (always in GMT/UTC) and the necessity to compare the two. A typical value is ``PST8PDT'' (US Pacific time with automatic adjustment for Daylight Savings Time or ``summer time'').


list archive files (short format). The names, uncompressed file sizes and modification dates and times of the specified files are printed, along with totals for all files specified. If was compiled with OS2_EAS defined, the option also lists columns for the sizes of stored OS/2 extended attributes (EAs) and OS/2 access control lists (ACLs). In addition, the zipfile comment and individual file comments (if any) are displayed. If a file was archived from a single-case file system (for example, the old MS-DOS FAT file system) and the option was given, the filename is converted to lowercase and is prefixed with a caret (^).


list zipfile information in verbose, multi-page format.


extract files to pipe (stdout). Nothing but the file data is sent to stdout, and the files are always extracted in binary format, just as they are stored (no conversions).


test archive files. This option extracts each specified file in memory and compares the CRC (cyclic redundancy check, an enhanced checksum) of the expanded file with the original file's stored CRC value.


[most OSes] set the timestamp on the archive(s) to that of the newest file in each one. This corresponds to 's option except that it can be used on wildcard zipfiles (e.g., ``unzip -T \*.zip'') and is much faster.


update existing files and create new ones if needed. This option performs the same function as the option, extracting (with query) files that are newer than those with the same name on disk, and in addition it extracts those files that do not already exist on disk. See above for information on setting the timezone properly.


list archive files (verbose format) or show diagnostic version info. This option has evolved and now behaves as both an option and a modifier. As an option it has two purposes: when a zipfile is specified with no other options, lists archive files verbosely, adding to the basic info the compression method, compressed size, compression ratio and 32-bit CRC. In contrast to most of the competing utilities, removes the 12 additional header bytes of encrypted entries from the compressed size numbers. Therefore, compressed size and compression ratio figures are independent of the entry's encryption status and show the correct compression performance. (The complete size of the encrypted compressed data stream for zipfile entries is reported by the more verbose reports, see the separate manual.) When no zipfile is specified (that is, the complete command is simply ``unzip -v''), a diagnostic screen is printed. In addition to the normal header with release date and version, lists the home Info-ZIP ftp site and where to find a list of other ftp and non-ftp sites; the target operating system for which it was compiled, as well as (possibly) the hardware on which it was compiled, the compiler and version used, and the compilation date; any special compilation options that might affect the program's operation (see also DECRYPTION below); and any options stored in environment variables that might do the same (see ENVIRONMENT below). As a modifier it works in conjunction with other options (e.g., ) to produce more verbose or debugging output; this is not yet fully implemented but will be in future releases.


display only the archive comment.



convert text files. Ordinarily all files are extracted exactly as they are stored (as ``binary'' files). The option causes files identified by zip as text files (those with the `t' label in listings, rather than `b') to be automatically extracted as such, converting line endings, end-of-file characters and the character set itself as necessary. (For example, Unix files use line feeds (LFs) for end-of-line (EOL) and have no end-of-file (EOF) marker; Macintoshes use carriage returns (CRs) for EOLs; and most PC operating systems use CR+LF for EOLs and control-Z for EOF. In addition, IBM mainframes and the Michigan Terminal System use EBCDIC rather than the more common ASCII character set, and NT supports Unicode.) Note that 's identification of text files is by no means perfect; some ``text'' files may actually be binary and vice versa. unzip therefore prints ``[text]'' or ``[binary]'' as a visual check for each file it extracts when using the option. The option forces all files to be extracted as text, regardless of the supposed file type. On VMS, see also .


treat all files as binary (no text conversions). This is a shortcut for .


[when compiled with UNIXBACKUP defined (as it is with PTC MKS Toolkit)] save a backup copy of each overwritten file. The backup file is gets the name of the target file with a tilde and optionally a unique sequence number (up to 5 digits) appended. The sequence number is applied whenever another file with the original name plus tilde already exists. When used together with the "overwrite all" option , numbered backup files are never created. In this case, all backup files are named as the original file with an appended tilde, existing backup files are deleted without notice. This feature works similarly to the default behavior of in many locations.

Example: the old copy of ``foo'' is renamed to ``foo~''.

Warning: Users should be aware that the option does not prevent loss of existing data under all circumstances. For example, when unzip is run in overwrite-all mode, an existing ``foo~'' file is deleted before unzip attempts to rename ``foo'' to ``foo~''. When this rename attempt fails (because of a file locks, insufficient privileges, or ...), the extraction of ``foo~'' gets cancelled, but the old backup file is already lost. A similar scenario takes place when the sequence number range for numbered backup files gets exhausted (99999, or 65535 for 16-bit systems). In this case, the backup file with the maximum sequence number is deleted and replaced by the new backup version without notice.


use case-insensitive matching for the selection of archive entries from the command-line list of extract selection patterns. 's philosophy is ``you get what you ask for'' (this is also responsible for the / change; see the relevant options below). Because some file systems are fully case-sensitive (notably those under the Unix operating system) and because both ZIP archives and itself are portable across platforms, 's default behavior is to match both wildcard and literal filenames case-sensitively. That is, specifying ``makefile'' on the command line will only match ``makefile'' in the archive, not ``Makefile'' or ``MAKEFILE'' (and similarly for wildcard specifications). Since this does not correspond to the behavior of many other operating/file systems (for example, OS/2 HPFS, which preserves mixed case but is not sensitive to it), the option may be used to force all filename matches to be case-insensitive. In the example above, all three files would then match ``makefile'' (or ``make*'', or similar). The option affects file specs in both the normal file list and the excluded-file list (xlist).

Please note that the option does neither affect the search for the zipfile(s) nor the matching of archive entries to existing files on the extraction path. On a case-sensitive file system, unzip will never try to overwrite a file ``FOO'' when extracting an entry ``foo''!


skip restoration of timestamps for extracted items. Normally, tries to restore all meta-information for extracted items that are supplied in the Zip archive (and do not require privileges or impose a security risk). By specifying , is told to suppress restoration of timestamps for directories explicitly created from Zip archive entries. This option only applies to ports that support setting timestamps for directories (currently ATheOS, BeOS, MacOS, OS/2, Unix, VMS, Win32, PTC MKS Toolkit, for other ports, has no effect). The duplicated option forces suppression of timestamp restoration for all extracted entries (files and directories). This option results in setting the timestamps for all extracted entries to the current time.

On VMS, the default setting for this option is for consistency with the behaviour of BACKUP: file timestamps are restored, timestamps of extracted directories are left at the current time. To enable restoration of directory timestamps, the negated option should be specified. On VMS, the option disables timestamp restoration for all extracted Zip archive items. (Here, a single on the command line combines with the default to do what an explicit does on other systems.)


[MacOS only] display contents of MacOS extra field during restore operation


[non-Acorn systems supporting long filenames with embedded commas, and only if compiled with ACORN_FTYPE_NFS defined (which PTC MKS Toolkit does not)] translate filetype information from ACORN RISC OS extra field blocks into a NFS filetype extension and append it to the names of the extracted files. (When the stored filename appears to already have an appended NFS filetype extension, it is replaced by the info from the extra field.


[MacOS only] ignore filenames stored in MacOS extra fields. Instead, the most compatible filename stored in the generic part of the entry's header is used.


junk paths. The archive's directory structure is not recreated; all files are deposited in the extraction directory (by default, the current one).


[MacOS only] ignore MacOS extra fields. All Macintosh specific info is skipped. Data-fork and resource-fork are restored as separate files.


[AtheOS, BeOS, Unix (but not PTC MKS Toolkit) only] retain SUID/SGID/Tacky file attributes. Without this flag, these attribute bits are cleared for security reasons.


convert to lowercase any filename originating on an uppercase-only operating system or file system. (This was 's default behavior in releases prior to 5.11; the new default behavior is identical to the old behavior with the option, which is now obsolete and will be removed in a future release.) Depending on the archiver, files archived under single-case file systems (VMS, old MS-DOS FAT, etc.) may be stored as all-uppercase names; this can be ugly or inconvenient when extracting to a case-preserving file system such as OS/2 HPFS or a case-sensitive one such as under Unix. By default lists and extracts such filenames exactly as they're stored (excepting truncation, conversion of unsupported characters, etc.); this option causes the names of all files from certain systems to be converted to lowercase. The option forces conversion of every filename to lowercase, regardless of the originating file system.


pipe all output through an internal pager similar to the Unix command. At the end of a screenful of output, unzip pauses with a ``--More--'' prompt; the next screenful may be viewed by pressing the Enter (Return) key or the space bar. unzip can be terminated by pressing the ``q'' key and, on some systems, the Enter/Return key. Unlike Unix , there is no forward-searching or editing capability. Also, doesn't notice if long lines wrap at the edge of the screen, effectively resulting in the printing of two or more lines and the likelihood that some text will scroll off the top of the screen before being viewed. On some systems the number of available lines on the screen is not detected, in which case assumes the height is 24 lines.


never overwrite existing files. If a file already exists, skip the extraction of that file without prompting. By default queries before extracting any file that already exists; the user may choose to overwrite only the current file, overwrite all files, skip extraction of the current file, skip extraction of all existing files, or rename the current file.


[Amiga] extract file comments as Amiga filenotes. File comments are created with the option of , or with the option of the Amiga port of , which stores filenotes as comments.


overwrite existing files without prompting. This is a dangerous option, so use it with care. (It is often used with , however, and is the only way to overwrite directory EAs under OS/2.)


use password to decrypt encrypted zipfile entries (if any). THIS IS INSECURE! Many multi-user operating systems (including PTC MKS Toolkit on Windows) provide ways for any user to see the current command line of any other user; even on stand-alone systems there is always the threat of over-the-shoulder peeking. Storing the plaintext password as part of a command line in an automated script is even worse. Whenever possible, use the non-echoing, interactive prompt to enter passwords. (And where security is truly important, use strong encryption such as Pretty Good Privacy instead of the relatively weak encryption provided by standard zipfile utilities.)


perform operations quietly ( = even quieter). Ordinarily prints the names of the files it's extracting or testing, the extraction methods, any file or zipfile comments that may be stored in the archive, and possibly a summary when finished with each archive. The options suppress the printing of some or all of these messages.


[OS/2, NT, MS-DOS, PTC MKS Toolkit] convert spaces in filenames to underscores. Since all PC operating systems allow spaces in filenames, by default extracts filenames with spaces intact (e.g., ``EA DATA. SF''). This can be awkward, however, since MS-DOS in particular does not gracefully support spaces in filenames. Conversion of spaces to underscores can eliminate the awkwardness in some cases.


[VMS] convert text files (, ) into Stream_LF record format, instead of the text-file default, variable-length record format. (Stream_LF is the default record format of VMS unzip. It is applied unless conversion ( , and/or , ) is requested or a VMS-specific entry is processed.)


[UNICODE_SUPPORT only] modify or disable UTF-8 handling. When UNICODE_SUPPORT is available (as it is with PTC MKS Toolkit), the option forces to escape all non-ASCII characters from UTF-8 coded filenames as ``#Uxxxx'' (for UCS-2 characters, or ``#Lxxxxxx'' for unicode codepoints needing 3 octets). This option is mainly provided for debugging purpose when the fairly new UTF-8 support is suspected to mangle up extracted filenames.

The option allows to entirely disable the recognition of UTF-8 encoded filenames. The handling of filename codings within unzip falls back to the behaviour of previous versions.

[old, obsolete usage] leave filenames uppercase if created under MS-DOS, VMS, etc. See above.


retain (VMS) file version numbers. VMS files can be stored with a version number, in the format file.ext;##. By default the ``;##'' version numbers are stripped, but this option allows them to be retained. (On file systems that limit filenames to particularly short lengths, the version numbers may be truncated or stripped regardless of this option.)


[only when WILD_STOP_AT_DIR compile-time option enabled (which is not enabled for PTC MKS Toolkit)] modifies the pattern matching routine so that both `?' (single-char wildcard) and `*' (multi-char wildcard) do not match the directory separator character `/'. (The two-character sequence ``**'' acts as a multi-char wildcard that includes the directory separator in its matched characters.) Examples:

"*.c" matches "foo.c" but not "mydir/foo.c"
"**.c" matches both "foo.c" and "mydir/foo.c"
"*/*.c" matches "bar/foo.c" but not "baz/bar/foo.c"
"??*/*" matches "ab/foo" and "abc/foo"
but not "a/foo" or "a/b/foo"

This modified behaviour is equivalent to the pattern matching style used by the shells of some of 's supported target OSs (one example is Acorn RISC OS). This option may not be available on systems where the Zip archive's internal directory separator character `/' is allowed as regular character in native operating system filenames. (Currently, uses the same pattern matching rules for both wildcard zipfile specifications and zip entry selection patterns in most ports. For systems allowing `/' as regular filename character, the option would not work as expected on a wildcard zipfile specification.)


[VMS, Unix, OS/2, NT, Tandem, PTC MKS Toolkit] restore owner/protection info (UICs and ACL entries) under VMS, or user and group info (UID/GID) under Unix, or access control lists (ACLs) under certain network-enabled versions of OS/2 (Warp Server with IBM LAN Server/Requester 3.0 to 5.0; Warp Connect with IBM Peer 1.0), or security ACLs under Windows NT. In most cases this will require special system privileges, and doubling the option () under NT instructs to use privileges for extraction; but under Unix, for example, a user who belongs to several groups can restore files owned by any of those groups, as long as the user IDs match his or her own. Note that ordinary file attributes are always restored--this option applies only to optional, extra ownership info available on some operating systems. [NT's access control lists do not appear to be especially compatible with OS/2's, so no attempt is made at cross-platform portability of access privileges. It is not clear under what conditions this would ever be useful anyway.]

PTC MKS Toolkit is capable of restoring ACLs but will ignore the Unix mode bits and owner and group information. i.e. it behaves more like a Win32 port than a Unix port for the option.


[VMS] treat archived file name endings of ``.nnn'' (where ``nnn'' is a decimal number) as if they were VMS version numbers (``;nnn''). (The default is to treat them as file types.) Example:

"a.b.3" -> "a.b;3".

[MS-DOS, OS/2, NT, PTC MKS Toolkit] restore the volume label if the extraction medium is removable (e.g., a diskette). Doubling the option () allows fixed media (hard disks) to be labelled as well. By default, volume labels are ignored.


[all but Acorn, VM/CMS, MVS, Tandem] allows to extract archive members into locations outside of the current `` extraction root folder''. For security reasons, normally removes ``parent dir'' path components (``../'') from the names of extracted file. This safety feature (new for version 5.50) prevents unzip from accidentally writing files to ``sensitive'' areas outside the active extraction folder tree head. The option lets switch back to its previous, more liberal behaviour, to allow exact extraction of (older) archives that used ``../'' components to create multiple directory trees at the level of the current extraction folder. This option does not enable writing explicitly to the root directory (``/''). To achieve this, it is necessary to set the extraction target folder to root (e.g. ). However, when the option is specified, it is still possible to implicitly write to the root directory by specifying enough ``../'' path components within the zip archive. Use this option with extreme caution.


[Unix (but not PTC MKS Toolkit) only] allow control characters in names of extracted ZIP archive entries. On Unix, a file name may contain any (8-bit) character code with the two exception '/' (directory delimiter) and NUL (0x00, the C string termination indicator), unless the specific file system has more restrictive conventions. Generally, this allows to embed ASCII control characters (or even sophisticated control sequences) in file names, at least on 'native' Unix file systems. However, it may be highly suspicious to make use of this Unix "feature". Embedded control characters in file names might have nasty side effects when displayed on screen by some listing code without sufficient filtering. And, for ordinary users, it may be difficult to handle such file names (e.g. when trying to specify it for open, copy, move, or delete operations). Therefore, unzip applies a filter by default that removes potentially dangerous control characters from the extracted file names. The option allows to override this filter in the rare case that embedded filename control characters are to be intentionally restored.


[VMS] force unconditionally conversion of file names to ODS2-compatible names. The default is to exploit the destination file system, preserving case and extended file name characters on an ODS5 destination file system; and applying the ODS2-compatibility file name filtering on an ODS2 destination file system.


's default behavior may be modified via options placed in an environment variable. This can be done with any option, but it is probably most useful with the , , , , , or modifiers: make auto-convert text files by default, make it convert filenames from uppercase systems to lowercase, make it match names case-insensitively, make it quieter, or make it always overwrite or never overwrite files as it extracts them. For example, to make act as quietly as possible, only reporting errors, one would use one of the following commands:

Unix (and PTC MKS Toolkit) Bourne shell:

UNZIP=-qq; export UNZIP

Unix (and PTC MKS Toolkit) C shell:

setenv UNZIP -qq

OS/2 or MS-DOS:

set UNZIP=-qq

VMS (quotes for lowercase):

define UNZIP_OPTS "-qq"

Environment options are, in effect, considered to be just like any other command-line options, except that they are effectively the first options on the command line. To override an environment option, one may use the ``minus operator'' to remove it. For instance, to override one of the quiet-flags in the example above, use the command

unzip --q[other options] zipfile

The first hyphen is the normal switch character, and the second is a minus sign, acting on the option. Thus the effect here is to cancel one quantum of quietness. To cancel both quiet flags, two (or more) minuses may be used:

unzip -t--q zipfile
unzip ---qt zipfile

(the two are equivalent). This may seem awkward or confusing, but it is reasonably intuitive: just ignore the first hyphen and go from there. It is also consistent with the behavior of Unix .

As suggested by the examples above, the default variable names are for VMS (where the symbol used to install unzip as a foreign command would otherwise be confused with the environment variable), and for all other operating systems. For compatibility with , is also accepted (don't ask). If both and are defined, however, takes precedence. 's diagnostic option ( with no zipfile name) can be used to check the values of all four possible and environment variables.

The timezone variable () should be set according to the local timezone in order for the and to operate correctly. See the description of above for details. This variable may also be necessary to get timestamps of extracted files to be set correctly. The WIN32 (2012/8.1/2012R2/2016/2019 and the PTC MKS Toolkit) port of gets the timezone configuration from the registry, assuming it is correctly set in the Control Panel. The variable is ignored for WIN32 but will override teh registry for PTC MKS Toolkit.

will instruct how to interpret file names and commants in an archive. Settings are:

The value must be one of , , or (or their equivalents) as described in the File Character Formats section of the reference page.

Setting to or is somewhat like to the environment variable on UNIX in that it tailors the interpretation of the character set in use for file names and comments inside the archive.

When this variable is unset or it is set to a value other than those listed earlier, the default ANSI character set is used.


Encrypted archives are fully supported by Info-ZIP software, but due to United States export restrictions, de-/encryption support might be disabled in your compiled binary. However, since spring 2000, US export restrictions have been liberated, and our source archives do now include full crypt code. In case you need binary distributions with crypt support enabled, see the file ``WHERE'' in any Info-ZIP source or binary distribution for locations both inside and outside the US.

Some compiled versions of may not support decryption (The PTC MKS Toolkit version is compiled with decryption enabled). To check a version for crypt support, either attempt to test or extract an encrypted archive, or else check 's diagnostic screen (see the option above) for ``[decryption]'' as one of the special compilation options.

As noted above, the option may be used to supply a password on the command line, but at a cost in security. The preferred decryption method is simply to extract normally; if a zipfile member is encrypted, will prompt for the password without echoing what is typed. continues to use the same password as long as it appears to be valid, by testing a 12-byte header on each file. The correct password will always check out against the header, but there is a 1-in-256 chance that an incorrect password will as well. (This is a security feature of the PKWARE zipfile format; it helps prevent brute-force attacks that might otherwise gain a large speed advantage by testing only the header.) In the case that an incorrect password is given but it passes the header test anyway, either an incorrect CRC will be generated for the extracted data or else unzip will fail during the extraction because the ``decrypted'' bytes do not constitute a valid compressed data stream.

If the first password fails the header check on some file, unzip will prompt for another password, and so on until all files are extracted. If a password is not known, entering a null password (that is, just a carriage return or ``Enter'') is taken as a signal to skip all further prompting. Only unencrypted files in the archive(s) will thereafter be extracted. (In fact, that's not quite true; older versions of and allowed null passwords, so checks each encrypted file to see if the null password works. This may result in ``false positives'' and extraction errors, as noted above.)

Archives encrypted with 8-bit passwords (for example, passwords with accented European characters) may not be portable across systems and/or other archivers. This problem stems from the use of multiple encoding methods for such characters, including Latin-1 (ISO 8859-1) and OEM code page 850. DOS PKZIP 2.04g uses the OEM code page; Windows PKZIP 2.50 uses Latin-1 (and is therefore incompatible with DOS PKZIP); Info-ZIP uses the OEM code page on DOS, OS/2 and Win3.x ports but ISO coding (Latin-1 etc.) everywhere else; and Nico Mak's WinZip 6.x does not allow 8-bit passwords at all. UnZip 5.3 (or newer) attempts to use the default character set first (e.g., Latin-1), followed by the alternate one (e.g., OEM code page) to test passwords. On EBCDIC systems, if both of these fail, EBCDIC encoding will be tested as a last resort. (EBCDIC is not tested on non-EBCDIC systems, because there are no known archivers that encrypt using EBCDIC encoding.) ISO character encodings other than Latin-1 are not supported. The new addition of (partially) Unicode (resp. UTF-8) support in UnZip 6.0 has not yet been adapted to the encryption password handling in unzip. On systems that use UTF-8 as native character encoding, unzip simply tries decryption with the native UTF-8 encoded password; the built-in attempts to check the password in translated encoding have not yet been adapted for UTF-8 support and will consequently fail.


To use unzip to extract all members of the archive into the current directory and subdirectories below it, creating any subdirectories as necessary:

unzip letters

To extract all members of into the current directory only:

unzip -j letters

To test, printing only a summary message indicating whether the archive is OK or not:

unzip -tq letters

To test all zipfiles in the current directory, printing only the summaries:

unzip -tq \*.zip

(The backslash before the asterisk is only required if the shell expands wildcards, as in Unix; double quotes could have been used instead, as in the source examples below.) To extract to standard output all members of whose names end in .tex, auto-converting to the local end-of-line convention and piping the output into :

unzip -ca letters \*.tex

How to use 7-ZIP to archive and compress your files? 7Zip is a great file compression and archiving tool. However, it’s unfortunate how only professionals and advanced users are the ones who know about it. So to give credit to this amazing tool, we will teach you a simple guide on how to use 7Zip. You can also 7zip download from our site.

There are too many file compression programs available online and among the most commonly used nowadays are WinZip and WinRAR. On the other hand, a lesser-known choice is 7Zip. It is free and has the smallest compression compared to the prior options.

The thing is, not many are aware that it is available till the time that it is introduced to them. Thus, they are often clueless about how to use 7Zip or the benefits it has to offer. They are also not aware that it can also have archive errors sometimes.

Is 7Zip safe? Which is a better tool, 7Zip vs WinRAR? Those are the few questions you need to learn after exploring how to use 7Zip so you can manage the 7Zip command line.


What is 7Zip?

Well, 7Zip as mentioned earlier, is a file archiver coupled with a high compression ratio both for GZIP and ZIP formats. This is between 2 to 10 percent better than other tools available.

7Zip boosts its own format delivering a high compression ratio that is roughly 40 percent higher. This is primarily because 7Zip is using LZMA as well as LZMA compression. In addition, it has dictionary sizes and superb compression settings.

Zip tool has gained its appeal and worldwide interests primarily because of its ability to compress files efficiently. However, this doesn’t stop 7Zip to show that it can match the bigger and more established names in the industry.

How to Install 7Zip

After the 7Zip download and launching, you will be amazed by how easy and simple to navigate through its user interface. In downloading 7Zip for Mac or Linux, just follow the steps discussed.

  1. Go to 7Zip’s home page and choose the version you wish to download. 
  2. As of this writing, these are the versions available.
    Download 7Zip
  3. Choose the version you want and click on the “Download” button.
  4. A new window appears which asks you what directory you like to install the program. Choose the destination folder you wish to save the program and click “Install”.
    Install 7Zip
  5. Once the 7Zip is installed, hit the “Finish” button.

That’s everything you have to do. Now, let’s proceed on how to use 7Zip and other vital product details and information.

Navigating through 7Zip’s UI

Inside the window, you’ll see the main toolbar containing the most useful features and other menus that let you dig deeper and be accustomed to its UI. Some of the features are briefly discussed below:

  • Extract – a button that allows you to accept or browse for the default destination path for your file easily.
  • View – this menu contains the “Folder History” as well as the “Favorites” menu which allows you to save to as much as ten folders.

7Zip can integrate with the Windows Explorer menu which displays archive files as folders. At the same time, it provides a toolbar with a drag-and-drop feature. It is possible as well to switch between a single or even dual-pane view. 7Zip password protect can help you protect the program.

How to Use 7-Zip: Compression

We’ve discussed and learned the installation procedure as well as a quick overview for 7Zip. Now, we will move on to properly use 7Zip both for compressing files and extracting them. At first, let’s proceed with compressing files.

7Zip Homepage
  • Step number 1. Open 7Zip File Manager.
  • Step number 2. Click on what file you wish to compress and click “Add”. This will identify the file that you need compress.
Choose ZIP
  • Step number 3. Add to Archive” window is going to pop up. Ensure that your Archive format is set to “Zip” and then hit the “OK” button.
  • Step number 4. 7Zip will now process the file and compress it in a zip file that’s located in the same destination where the original file is.

When extracting files, there are 5 straightforward steps you need to do. Just check the instructions below.

  1. Select the files that you want to extract.
  2. Choose files you wish to extract and press right-click. This will open a new menu.
  3.  Hover over the “7Zip” option.
    7Zip System Integration
  4.  Choose “Extract Here”. This brings up a new window that shows the progress as well as the remaining time before extracting the file.
    File Extracting
  5.  Wait for it to finish. The extracted file will appear in the same directory where you have all RAR or 7Zip files in.

Product Specifications

7Zip is offering multiple features which makes it one of the best and most effective software compression tools that deliver the lowest compressed data. Few of its remarkable specs are:

  • Open Architecture – the source code is using GNU LGPL license while the unRAR code is a combination of license with unRAR + GNU LGPL restrictions.
  • High Compression Ratio – by taking advantage of its own 7z format w/ LZMA as well as LZMA2 compression, it allows 7Z to achieve a 40 percent compression ratio or higher compared to its peers. For GZIP and ZIP formats, 7Z delivers a compression ratio that’s 2 to 10 percent better compared to WinZip and PKZip.
  • Strong AES-256 encryption – this one includes both encryption and password protection of filenames and files.
  • Ability to use multiple encryptions, conversion or compression methods – to give you an example, 7Z can support several packing as well as unpacking for XZ, GZIP, ZIP, TAR, WIM, and 7z It also has support for a self-extracting ability for 7z format.
  • Integrates with Windows Shell – by using the menu options, it is feasible to integrate 7z to the Windows Shell menu.


These are the spec sheet that made 7Zip a strong competitor among the leading compression tools on the web. The best part, 7z is available and downloadable free of charge! If you’re afraid that you don’t know how to use 7Zip, which stops you from switching, follow the steps above. Start to enjoy the lowest compression at no price.

Источник: []

Express Zip File Compression Software

Zip Software to Compress Files & Folders Quickly & Easily

Fast & EfficientZip and unzip files quickly

Popular FormatsOpen all major archive formats

Drag & DropEasy drag & drop interface

Encrypt & ProtectPassword protect ZIP files

  • Fast and efficient file zipping and unzipping
  • Compress files for email transmission
  • Open RAR, 7Z, TAR, CAB & more data archive formats
  • Install & compress or extract in seconds
Express Zip is one of the most stable, easy-to-use and comprehensive file archive and compression tools available. Create, manage and extract zipped files and folders. Reduce file space needed by zipping big files before sending them to family, friends, coworkers and clients.
Designed to be very easy and intuitive to use, this zipping software will be up and running within minutes. Simply download now and install to manage all the zip files and archives on your computer.
Get it Free. A free version of Express Zip is available for non-commercial use only. Download the free version here which does not expire and includes most of the features of the professional version.

Zip File Converter Screenshots>>

Express Zip Features
  • Create new ZIP files quickly
  • Open, unzip and extract popular archive formats including ZIP, RAR, CAB, TAR, 7Z, ISO, GZIP, MULTIDISK, ZIPX, LZH, ARJ, PKPASS, GZ and many more
  • Manage ZIP files by editing or moving contents
  • Encrypt ZIP files or open encrypted archives
  • Email ZIP files in two easy clicks
  • Convert archives to ZIP from other formats
  • Burn archived files to CD/DVD for long term backup
  • Right-click menu options to Compress or Extract directly from your file browser
  • Split large ZIP files into smaller parts with multi-part split ZIP archives
  • Easy drag and drop functionality
  • Fit more files on a flash drive or external storage device
  • Create a PAR2 recovery file to repair incomplete or corrupt archives
  • Password protect ZIP files containing sensitive documents
  • Unzip files in a couple of clicks
Источник: []
Zip tool Archives s bash

Windows 10

curl.exe-fsS -A MS powershell

With Go

To install the runnable binary to your $GOPATH/bin:

go install


To install manually

  1. Download the binary for your platform from the Github Releases page.
  2. Move the binary to a location in your path, for example:
    • without :
      chmod a+x ~/Downloads/arc_* mkdir -p ~/.local/bin mv ~/Downloads/arc_*~/.local/bin/arc
    • as :
      chmod a+x ~/Downloads/arc_* sudo mkdir -p /usr/local/bin sudo mv ~/Downloads/arc_* /usr/local/bin/arc
  3. If needed, update or to include add in yourfor example:

Build from Source

You can successfully build with just the go tooling, or with .


Multi-platform with

Builds with will also include version info.

goreleaser --snapshot --skip-publish --rm-dist

Command Use

Make new archive

# Syntax: arc archive [archive name] [input files.] arc archive test.tar.gz Zip tool Archives s images/file2.jpg folder/subfolder

(At least one input file is required.)

Extract entire archive

# Syntax: arc unarchive [archive name] [destination] arc unarchive test.tar.gz

(The destination path is optional; default is current directory.)

The archive name must end with a supported file extension—this is how it knows what kind of archive to make. Run for more help.

List archive contents

# Syntax: arc ls [archive name] arc ls caddy_dist.tar.gz

Extract a specific file or folder from an archive

# Syntax: arc extract [archive name] [path in archive] [destination on disk] arc extract test.tar.gz foo/hello.txt extracted/hello.txt

Compress a single file

# Syntax: arc compress [input file] [output file] arc compress test.txt compressed_test.txt.gz arc compress test.txt gz

For convenience, the output file (second argument) may simply be a compression format (without leading dot), in which case Zip tool Archives s output filename will be the same as the input filename but with the format extension appended, and the input file will be deleted if successful.

Decompress a single file

# Syntax: arc decompress [input file] [output file] arc decompress test.txt.gz original_test.txt arc decompress test.txt.gz

For convenience, the output file (second argument) may be omitted. In that case, the output filename will have the same name as the input filename, but with the compression extension stripped from the end; and the input file will be deleted if successful.


Flags are specified before the subcommand. Use or to get usage help and a description of flags with their default values.

Library Use

The archiver package allows you to easily create and open archives, walk their contents, extract specific files, compress and decompress files, and even stream archives in and out using pure io.Reader and io.Writer interfaces, without ever needing to touch the disk.

To use as a dependency TubeDigger Crack With Registration Key Free Download your project:

go get

See the package's GoDoc for full API documentation.

For example, creating or unpacking an archive file:

err:=archiver.Archive([]string{"testdata", "other/file.txt"}, "") // .err=archiver.Unarchive("test.tar.gz", "test")

The archive format is determined by file extension. (There are several functions in this package which perform a task by inferring the format from file extension or file header, including,and .)

To configure the archiver used or perform, create an instance of the format's type:

z:= archiver.Zip{ CompressionLevel: Zip tool Archives s flate.DefaultCompression, MkdirAll: Zip tool Archives s true, SelectiveCompression: true, Zip tool Archives s, ContinueOnError: Zip tool Archives s false, OverwriteExisting: false, Zip tool Archives s, ImplicitTopLevelFolder: false, } err:=z.Archive([]string{"testdata", "other/file.txt"}, "/Users/matt/Desktop/")

Inspecting an archive:

Источник: []

Express Zip File Compression Software

Zip Software to Compress Files & Folders Quickly & Zip tool Archives s width="32" height="24" src="">

Fast & EfficientZip and unzip files quickly

Popular FormatsOpen all major archive formats

Drag & DropEasy drag & drop interface

Encrypt & ProtectPassword protect ZIP files

  • Fast and efficient file zipping and unzipping
  • Compress files for email transmission
  • Open RAR, 7Z, Zip tool Archives s, TAR, CAB & more data archive formats
  • Install & compress or extract in seconds
Express Zip is one of the most stable, easy-to-use and comprehensive file archive and compression tools available. Create, manage and extract zipped files and folders. Reduce file space needed by zipping big files before sending them to family, friends, coworkers and clients.
Designed to be very easy and intuitive to use, this zipping software will be up and running within minutes. Simply download now and install to manage all the zip files and archives on your computer.
Get it Free, Zip tool Archives s. A free version of Express Zip is available for non-commercial use only. Download the free version here which does not expire and includes most of the features of the professional version.

Zip File Converter Screenshots>>

Express Zip Features
  • Create new ZIP files quickly
  • Open, unzip and extract popular archive formats including ZIP, Zip tool Archives s, RAR, CAB, TAR, 7Z, ISO, GZIP, MULTIDISK, ZIPX, LZH, ARJ, PKPASS, Zip tool Archives s, GZ and many more
  • Manage ZIP files by editing or moving contents
  • Encrypt ZIP files or open encrypted archives
  • Email ZIP files in two easy clicks
  • Convert archives to ZIP from other formats
  • Burn archived files to CD/DVD for long term backup
  • Right-click menu options to Compress or Extract directly from your file browser
  • Split large ZIP files into Zip tool Archives s parts with multi-part split ZIP archives
  • Easy drag and drop functionality
  • Fit more files on a flash drive or external storage device
  • Create a PAR2 recovery file to repair incomplete or corrupt archives
  • Password protect ZIP files containing sensitive documents
  • Unzip files in a couple of clicks
Источник: []

Compress files using 7-zip

how to archive a file

7-Zip is an open source software. It is a file archive compression utility that can be used on any computer. The 7-Zip utility can be used from a command line interface, graphical user interface, or with a window-based shell integration. By default, 7-Zip creates 7z format archives with a .7z file extension. Besides operating on the 7z format, it supports many other popular archive formats and can seamlessly work on them. The main features of 7z format are it has high compression ratio and it supporting files with sizes up to 16000000000 GB. Moreover 7zip is distributed under LGPL license as a free software to use.

How to download 7-Zip ?

You can freely download 7-zip.exe file from

Click here to download 7-Zip.exe

After download 7-zip.exe you have to double click the file and install it. After installed the 7-zip.exe you can find it on windows C:\Program Files\7-Zip with the name 7z.exe

How to run 7-zip ?

winzip winrar

For study purpose, you don't need to change environment paths, copy the 7-Zip folder to your user directory. Open a Command Prompt window from Start->All Programs->Accessories->Command Prompt, Zip tool Archives s. Change the command prompt directory to your 7-Zip folder.


How to compress (zip) Zip tool Archives s using 7-zip ?

7z a -t7z files.7z *.txt -r how to compress a file

Above command compress all *.txt files from current folder and its subfolders to archive files.7z. The output filename (compressed filename) is files.7z

How to zip a folder ?

7z a test

Above command compress the folder test and the output filename (compressed filename) is

How to extract files ?

7z e

Above command extracts all files from to the current directory.

7z e -od:\ext

Above command extract all files from to the directory d:\ext

7z e -od:\ext *.dll -r

Above command extract all *.dll files from to the directory d:\ext

Note: 7-Zip will always prompt you if there is a file it needs to overwrite to extract the new file. Possible Query Answers: (Y)es / (N)o / (A)lways / (S)kip all / A(u)to rename all / (Q)uit

How to list (view) all files from an archive ?

7z l

Above command will display all files from

How to delete a file from an archive ?

7z d *.dll -r

Above command will delete all .dll files from the archive

How to update files in an archive ?

7z u *.dll

Above command update the file by adding all *.dll files to


-y - Stops prompting. Automatically answers "Yes" to all questions. -ms=on - Enable solid mode. All files are compressed as one (unable to update, and olny for 7z format). Default behaviour. -ms=off - Disable solid mode. -o - Output. (7z x -oC:Doc) -p - Password, Zip tool Archives s. (7za a pw.7z *.txt -pSECRET) -mhe - Encrypts headers. File names are not visible until decryption. -ssc - Specify case-sensitive (Windows default: insensitive, Linux default: sensitive). -ssw - Compress locked files. -sw - Specify working directory. -so - Redirect output to standard stream.

m - Method. Specifies the compression method

Switch -mx0: Don't compress at all, Zip tool Archives s. This is called "copy mode." Switch -mx1: Low compression. This is called "fastest" mode, Zip tool Archives s. Switch -mx3: Fast compression mode. Will automatically set various parameters. Switch -mx5: Same as above, but "normal." Switch -mx7: This means "maximum" compression. Switch -mx9: This means "ultra" compression. You probably want to use this. Zip tool Archives s - Type. Specifies archive type that you want to create Switch: -t7z Format: 7Z Switch: -tgzip Format: GZIP Switch: -tzip Format: ZIP Switch: -tbzip2 Format: BZIP2 Switch: -ttar Format: TAR Switch: -tiso Format: ISO Switch: -tudf Format: UDF

Create and extract a password-protected file

The following commands create password-protected file uisng 7zip

7z a * -p

Then system ask to enter password:

7z : CommandName a : Add to archive : Destination file name * : Add all files from current directory to zip file -p : Specify the password

The following commands extract a password-protected file uisng 7zip

7z x

Then the system ask the password, when you supply correct password it will extract the zip file

Create separate zip files for each directory/folder

You may know how to archieve multiple files to one zip file, but do you know how to zip multiple folders or files and create individual zip files for each of them automatically ? The following 7zip commandline shows how create seperate zip file for each folder you select.

for /D %d in (*.*) do C:\7-Zip\7z a -tzip "" "%d"

7-zip GUI (Graphical User Interface)

After successfully installed 7-zip, you can use 7-zip GUI (Graphical User Interface) to compress file(s).

How to zip (Compress) file(s) using 7-zip GUI ?

Right click on selected file(s) or folder(s), then you get the pop-up menu, Zip tool Archives s, select "7-zip" and then select "Add to Archive" menu.

7-zip windows

Then you get the next window and you can set your file name and preferred path from that screen.

7-zip linux

And then Click OK button. The files now compressed and saved to your prefered folder.

How to Quick Compression ?

Right click on selected file(s), then you get the pop-up menu, select "7-zip" and then select "Add to yourfilename.7z" menu.

7-zip mac

How to extract 7-zip files ?

It is very easy to extract 7-zip file(s). Right click on the compressed file then select "7-zip" and then select "Extract Here" option. It will then extract all file(s) in the current directory.

7-zip android

"Extract Files" option will let you to select prefered folder and extract the files to that folder.

"Extract to yourfilename\" option will automatically create a folder and named your filename and then extract the whole files to that folder.

NEXT.How to Use Robocopy
Источник: []

Zip tool Archives s mholt / archiver Public

Introducing Archiver 3.1 - a cross-platform, multi-format archive utility and Go library. A powerful and flexible library meets an elegant CLI in this generic replacement for several platform-specific or format-specific archive utilities.


Package archiver makes it trivially easy to make and extract common archive formats such as tarball (and its compressed variants) and zip. Simply name the input and output file(s). The command runs the same on all platforms and has no external dependencies (not even libc). It is powered by the Go standard library and several third-party, pure-Go libraries.

Files are put into the root of the archive; directories are recursively added, Zip tool Archives s, preserving structure.

Format-dependent features

Supported compression formats

Supported archive formats

Tar files can optionally be compressed using any of the above compression formats.




With webi

will install and to and update your .

Mac, Linux, Raspberry Pi

curl -fsS more

To extract the binary file to standard output and pipe it to a printing program:

unzip -p articles paper1.dvi

Notice: Undefined variable: z_bot in /sites/ on line 99

Notice: Undefined variable: z_empty in /sites/ on line 99


Leave a Reply

Your email address will not be published. Required fields are marked *