- Windows install zip command
- Windows: Zip | Unzip – Command Line
- Zip/Unzip From The Command Line In Windows
- PowerShell 5.0 (Windows 10) and greater
- PowerShell 3.0 (Windows 8) and greater
- КАК СОЗДАТЬ (СДЕЛАТЬ) ZIP АРХИВ
- 1. Создайте ZIP архив с помощью контекстного меню Windows
- 2. Используйте проводник для создания ZIP-файлов в Windows
- 3. Используйте командную строку Windows для создания ZIP-файлов
- 4. Программы для создания ZIP-файла в Windows
- 5. Добавьте файлы в существующий ZIP-файл в Windows
- 6. Как распаковать ZIP-файлы в Windows
Windows install zip command
a command line
multi function tool.
free external tools,
zero install effort,
usb stick compliant:
How to get zip and unzip on the windows command line for quick creation and extraction of zip compressed files. |
Download the free Windows executables: (for Linux, see below)
- to extract zip files on the command line, download unzip.exe here.
this file is a copy of the original Info-ZIP unzip.exe version 5.52, provided for free under the Info-ZIP license. Alternatively, you may download it via the original Info-ZIP website.
How to use unzip? Read the examples below.
to create zip files on the command line, download zip.exe here.
this file is a copy of the original Info-ZIP zip.exe version 2.32, provided for free under the Info-ZIP license. Alternatively, you may download it via the original Info-ZIP website.
How to use zip? Read the examples below.
- include or exclude sub folders or filenames
- zip only files changed today, or in the last 3 days
- with full UTF-8 unicode filename support
download Swiss File Knife here. Then type sfk zip or sfk unzip and read the examples.
this tool is created and maintained only by this website, www.stahlworks.com, and not associated with Info-ZIP. Swiss File Knife Base is Free Open Source, BSD licensed. (more)
to extract .tar.gz and .tar.bz2 files under windows, download:
gzip.exe | 1.3.12 | a copy from http://gnuwin32.sourceforge.net/ |
bzip2.exe | 1.0.5 | a copy from http://www.bzip.org/ |
tar.exe | a copy from http://sourceforge.net/projects/unxutils/ |
All binaries can be used instantly, requiring no further DLL’s.
Some command examples:
gzip -d foo.tar.gz | uncompresses foo.tar.gz, replacing it by foo.tar |
bzip2 -d foo.tar.bz2 | uncompresses foo.tar.bz2, replacing it by foo.tar |
tar tvf foo.tar | lists the contents of foo.tar |
tar xvf foo.tar | extracts the contents of foo.tar |
- Zip and Unzip for newer (lib6 based) distributions: unzip 5.51, zip 2.3
- Zip and Unzip for older (lib5 based) distributions: unzip 5.50, zip 2.3
These files are copies from the Info-Zip download locations listed above,
provided under the Info-ZIP license.
These files are provided for free under the BSD license.
Further zip tools of possible interest:
Although not discussed here, it should be mentioned that the original Info-ZIP homepage provides further tools, e.g. for the creation of self-extracting zips, gzip and zipsplit, and of course zip/unzip binaries for many other operating systems.
Example for searching through zip file contents:
searches all .java files within eclipse.zip for lines with the words «public» AND «class».
Note that zzfind can also search files in a zip within a zip (nested zips).
How to list nested zip file contents (zips or jars within zips):
For example, if you download the Eclipse SDK and type you get a listing of less than 2000 files, listing also .jar file names. But how can you also list what is inside the .jar files, without the need to extract everything first?
Download Swiss File Knife Base, then type: This will produce a listing of all files, no matter how deeply nested — in total nearly 70000 lines that can be very long, for example:
eclipse-SDK-3.3.2-win32.zip\\eclipse\plugins \org.eclipse.ant.core_3.1.200.v20070522.jar\\lib \antsupportlib.jar\\org\eclipse\ant \internal\core\ant\EclipseAntMain.class |
The above is the text of a single line (filename), split into 4 lines here for better reading.
As you can see, there is a .class file in a .jar within another .jar within the .zip.
Limitations: SFK may not be able to process very large zip files, zip files with an unusual compression method, or 64 bit zip files. Type sfk help xe to list all limitations.
How to list the contents of all .zip files in all subdirectories:
In the example above, we listed the content of a single zip file. But sfk can also list the contents of all .zip, .jar, .ear, .war and .aar files in a directory tree. type: and get the most comprehensive listing of all files, all .zip (.jar etc) file contents
and even zip contents embedded within other zips.
Flexible file selection for zipping, using sfk:
If you don’t want to zip all files of a directory tree, but for example
- files that changed today, or since a date
- files with a specific file extension
- all files except those in subdirectories \save\ and \tmp\
- files that are different compared to another directory
then you have to prepare a file list with the swiss file knife, and send this to the zip tool through zip’s option -@ (read file list from standard input).
example: zipping files changed today
four files were changed today, so only those are packed into update.zip. |
example: including/excluding by filename
only files with extension .txt are collected from the docs directory, excluding files
the example uses sfk for windows syntax. linux users have to type «:» instead of «!». |
example: comparing directories
we have two directory trees, «docs» and «docs-old». the latter one is a copy of docs, made some days ago. meanwhile, there have been changes in «docs». but what changes?
this command only lists what has changed so far:
|
so let’s collect all these differences into a .zip. notice that zip would be irritated by the [add] and [dif] prefixes in each line, therefore we have to add sfk option -pure:
now let’s send this to zip:
NTFS and ZIP — execution prevention problem:
i experienced one small problem when using the command-line (un)zip together with NTFS file systems; in short terms, after unzipping «.msi» files, I was unable to install software from these files. windows complained that access to the files was not possible or denied (due to some «execution prevention» mechanism introducted with XP SP2). this was probably because i zipped those files from a FAT partition (maybe even with an older zip tool) and then unzipped them on NTFS. the solution was to copy the files to a partition with FAT(32) file system, e.g. an USB stick, and then to run the installer from there.
NTFS and ZIP — filetime jumps:
another issue concerns filetimes, especially when zipping/unzipping accross FAT and NTFS partitions. in short terms, if you zip files from a FAT partition, then unpack this .zip on an NTFS partition, you always have to expect that the filetimes may be changed globally by a few hours. This is not at all a bug in the zip tool — it’s due to the way that NTFS manages filetimes internally. in case you’re irritated by this, try the following: 1) remember the filetimes in some directory on an NTFS partition. 2) change the date of your system from summer to winter time, or vice versa 3) have a look again at the filetimes and be shocked: all file times have jumped by one hour! so this is not a zip-specific problem, but it may show up when you compare times listed in a .zip file with those of the files actually created.
Windows: Zip | Unzip – Command Line
In the past it was not possible to create Zip files and Unzip archives in Windows without installing third-party programs like WinZip and 7-Zip.
But now Windows has a built-in capability to Zip files and folders and Unzip archives from the command line using PowerShell.
Starting from Windows 8 with PowerShell 3.0 and .NET Framework 4.5 installed by default, it is possible to use a kind of zip and unzip commands from the command line.
Cool Tip: Download a file using PowerShell! Read more →
Zip/Unzip From The Command Line In Windows
Depending on the version of PowerShell there are different ways to Zip files and folders and Unzip archives in Windows from the command line.
To determine a version of PowerShell on your machine, execute:
PowerShell 5.0 (Windows 10) and greater
Starting from PowerShell 5.0 (Windows 10), it is possible to Zip files and folders and Unzip archives in Windows using Compress-Archive and Expand-Archive PowerShell commands.
Zip a file or a folder from the command line in Windows:
Zip all files in a folder:
Unzip an archive from the command line in Windows:
PowerShell 3.0 (Windows 8) and greater
Starting from PowerShell 3.0 (Windows 8), it is possible to Zip folders and Unzip archives in Windows from the command line using the special methods in PowerShell.
Zip all files in a folder from the command line in Windows:
Unzip an archive from the command line in Windows:
КАК СОЗДАТЬ (СДЕЛАТЬ) ZIP АРХИВ
В этой статье рассмотрено 6 способов как сделать zip архив в Windows 10. Если хотите сделать ZIP-файл на Windows 10 а не знаете как, тогда вот самые простые способы создания архивных папок.
Вы хотите создать ZIP-архив на своем компьютере с Windows? Существуют различные причины, по которым вы хотели бы сделать это. Может быть, вы хотите объединить несколько файлов в один архив? Или, может быть, вы хотите уменьшить размер ваших файлов, сжимая их в ZIP-архиве?Независимо от причины, существуют встроенные и сторонние опции создания ZIP-файла в Windows. Вот шесть простых способов создания ZIP архива в Windows 10 .
1. Создайте ZIP архив с помощью контекстного меню Windows
Один из самых простых способов создать ZIP файл на вашем ПК. Это использовать контекстное меню. В этом меню есть опция, которая позволяет добавлять выбранные файлы в ZIP-архив.
Для этого не нужно устанавливать какие-либо расширения или приложения. Эта функция доступна сразу после установки Windows 10.
Вы можете использовать эту опцию для добавления одного файла, нескольких файлов и даже папок в новый ZIP-архив. Вот как вы его используете:
Этот новый ZIP-архив помещается в ту же папку, что и ваши исходные файлы.
2. Используйте проводник для создания ZIP-файлов в Windows
Еще один встроенный способ создания ZIP-файла в Windows — это использование проводника файлов. Этот способ работает почти так же, как и пункт контекстного меню. И вы можете использовать его для добавления файлов и папок в новый ZIP-архив.
Вот как можно найти и воспользоваться этой функцией архивации:
- Откройте окно проводника файлов и откройте папку, в которой находятся ваши файлы.
- Выберите файлы, которые вы хотите добавить в ZIP-архив.
- Перейдите на вкладку с надписью Поделиться, которая находится в верхней части окна Проводника.
- Вы увидите опцию с надписью Сжать. Выберите этот параметр.
- Windows пойдет дальше и создаст для вас ZIP-архив. Не будет никаких подсказок или подтверждений.
3. Используйте командную строку Windows для создания ZIP-файлов
Если вы являетесь фанатом командной строки. Тогда этот способ точно для вас. Так как он полностью описывает метод создания Zip архива через командную строку.
Хочу заметить, что эта команда работает только в Windows 10.
В Windows 10 есть команда tar , которая помогает создавать или извлекать архивы на вашем компьютере. Вы можете использовать эту команду для добавления существующих файлов в ZIP-архив.
4. Программы для создания ZIP-файла в Windows
Windows 10 позволяет создавать ZIP-архивы без каких-либо приложений. Но эти возможности довольно ограничены и не совсем удобны. Если вам нужны дополнительные опции, такие как возможность выбрать уровень сжатия и разделить архив на несколько частей. Тогда вам потребуется скачать и установить дополнительные программы. Например:
7-Zip (free) это сторонний инструмент архивирования. Который вы можете использовать для создания, а также извлечения разных типов архивов на вашем компьютере. Эта программа предлагает такие опции, как разбитие архивов и добавление к ним защиты паролем. А так же многое другое.
Если вам интересны все функции 7-zip, напишите в комментарии,а я сделаю для вас подробный обзор с подробным описанием.
Краткая инструкция для создания ZIP-файла через команду 7-zip:
- Установите приложение 7-Zip на свой компьютер.
- Откройте приложение, и в нем появятся ваши файлы. Так как в 7-zip свой файловый менеджер.
- Используя этот менеджер, откройте папку, в которой находятся ваши файлы.
- Выберите файлы, которые вы хотите добавить в свой ZIP-архив.
- Нажмите кнопку Добавить на верхней панели инструментов.
- Укажите папку где создать Zip архив, далее формат архива, уровень сжатия, при необходимости пароль для вашего ZIP-архива. Затем нажмите кнопку ОК в нижней части экрана.
- 7-Zip создаст и сохранит архив в выбранной вами папке.
5. Добавьте файлы в существующий ZIP-файл в Windows
Если вы вдруг забыли добавить некоторые файлы при создании ZIP-архива. Не беспокойтесь, вы можете добавить файлы в существующий архив без каких-либо хлопот. Вам даже не нужна дополнительная программа. Вот что нужно сделать чтоб изменить существующий ZIP-архив:
- Откройте папку, в которой находится ваш ZIP-архив.
- В другом окне откройте папку с файлами которые вы забыли заархивировать.
- Теперь просто перетащите файлы в ZIP-архив.
- Теперь ваши файлы будут добавлены в ваш архив.
6. Как распаковать ZIP-файлы в Windows
В ОС Windows 10 можно извлечь файлы как через командную строку так и с помощью контекстного меню.