Windows executable zip file

Windows executable zip file

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.

  • to create or extract zip files more flexible, like
    • 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.

  • The gzip, bzip2 and tar commands should be available on your linux already.
  • zzfind and sfk for newer (lib6 based) distributions: zzfind, sfk
  • zzfind and sfk for newer (lib5 based) distributions: zzfind, sfk

    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
    • which are located in any subdirectory named «tmp»
    • having «-save.» in their name

    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:
    • some files have been added.
    • some files have differences, i.e. have been edited meanwhile.

    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

    Поддержка всех форматов архивации

    Выбор темы оформления программы

    Полностью бесплатное использование

    Сочетание функций и стиля

    WindowsZIP – сочетание высокой производительности, небольшого веса и продуманного дизайна. Речь идет об удобной утилите для архивации текстов, музыки, видеороликов, фото, различного софта. Привлекает обширным функционалом и детализированным интерфейсом.

    Приложение содержит 15 разных стилей, каждый из которых вы можете оценить в настройках — все варианты предполагают уникальное оформление! При этом приложение привлекает интуитивно понятным меню. Посредством нескольких кликов можно добавить и удалить архив, извлечь данные и проверить файлы на наличие вирусов.

    Управление бесплатной программой для Windows предусматривает работу, как с окном приложения, так и готовыми архивами. Вы можете создать папку и перетащить в нее необходимые файлы или осуществить действия посредством работы в приложении. Для этого нужно нажать на вкладку «добавить» и указать путь к интересующим элементам.

    Богатый функционал

    WindowsZIP привлекает обширным набором функций для создания, конвертации и редактирования архивов. С помощью данного приложения можно установить пароль, изменить вес и придумать название для файла. Можно совместить несколько архивов в один, выполнить сжатие для экономии места, зашифровать данные и скрыть папки.

    Если не хотите «заморачиваться» можно поставить галочку возле функции «Создать само-распаковывающийся архив», который предполагает наличие настроек по умолчанию. Также есть режим, позволяющий автоматически прикреплять к названию файла дату и время создания.

    Поддержка всех форматов

    Посредством менеджера расширения файлов, вы можете выбрать, в каком формате сохранить архив. Доступно более 20 вариаций, включая:

    WindowsZIP предусматривает открытие любых архивов, даже которые создавались посредством портативных устройств. Более того вы можете создать и изменить папки на ПК под разные операционные системы, включая Андроид и прочее.

    Можно ли архивировать файл из командной строки, используя только встроенные возможности Windows для zip-файлов?

    У меня есть пакетный файл, который выводит текстовый файл. Я подумала, было бы неплохо, если бы я тоже застегнула молнию.

    Это будет использоваться в неконтролируемой среде, поэтому я не могу делать предположения о наличии сторонних программных продуктов, таких как 7-Zip, etc. Для этого необходимо использовать встроенные возможности Windows для zip-файлов.

    11 ответов

    вот решение для всех пакетных файлов (вариант моего другого ответа), которое будет zip-файл с именем c:\ue_english.txt и положил его в C:\someArchive.zip :

    требуется доступ на запись к родительской папке, хранящейся в TEMPDIR . Как это часто бывает для корня диска C TEMPDIR может быть изменено.

    запись необходима для папке .bat скрипт (как он создает файл есть).

    также, пожалуйста заметьте что архив расширение для сжатого файла должно быть .zip . Попытки использовать другое расширение могут привести к ошибке сценария. Вместо этого создайте .zip файл и переименуйте его.

    It is можно zip-файлов без установки каких-либо дополнительных программное обеспечение (я его тестировал). Решение проблемы:

    выполнить в окне командной строки, чтобы создать zip-файл по имени C:\someArchive.zip содержит все файлы в папке C:\test3 :

    где файл zip.vbs содержит:

    Я не проверял его на пути и имена файлов, содержащих пробелы. Это может работать, если кавычки помещаются вокруг командной строки параметры.

    как это работает: встроенная функциональность zip в Windows (Windows XP и более поздних версий?) есть разоблачен через COM интерфейсы из оболочки Windows , исследователь.exe-то есть «оболочка».Прикладная часть. Этот COM-интерфейс можно использовать из VBScript сценарий, потому что такой скрипт может обращаться к компонентам COM. Чтобы сделать скрипт полностью автономным, он создает пустой ZIP-файл для начала работы (можно также создать пустой ZIP-файл скопируйте его в целевую систему вместе со сценарием VBScript).

    VBScript был установлен по умолчанию на каждом рабочем столе версии Microsoft Windows, начиная с Windows 98.

    How to unzip a file using the command line? [closed]

    Want to improve this question? Update the question so it’s on-topic for Stack Overflow.

    Closed 8 years ago .

    Which commands can be used via the command line to unzip a file?
    Preferably something built into Windows or open source/free tools.

    10 Answers 10

    If you already have Java Development Kit on your PC and the bin directory is in your path (in most cases), you can use the command line:

    or if not in your path:

    Complete set of options for the jar tool available here.

    7-Zip, it’s open source, free and supports a wide range of formats.

    Firstly, write an unzip utility using vbscript to trigger the native unzip functionality in Windows. Then pipe out the script from within your batch file and then call it. Then it’s as good as stand alone. I’ve done it in the past for numerous tasks. This way it does not require need of third party applications, just the one batch file that does everything.

    Use it like this:

    As other have alluded, 7-zip is great.

    Note: I am going to zip and then unzip a file. Unzip is at the bottom.

    7-Zip Command Line Version

    You can put the following into a .bat file

    I’ve shown a few options.

    -r is recursive. Usually what you want with zip functionality.

    a is for «archive». That’s the name of the output zip file.

    -p is for a password (optional)

    -w is a the source directory. This will nest your files correctly in the zip file, without extra folder information.

    -mem is the encryption strength.

    There are others. But the above will get you running.

    NOTE: Adding a password will make the zip file unfriendly when it comes to viewing the file through Windows Explorer. The client may need their own copy of 7-zip (or winzip or other) to view the contents of the file.

    EDIT. (just extra stuff).

    There is a «command line» version which is probably better suited for this: http://www.7-zip.org/download.html

    So the zip command would be (with the command line version of the 7 zip tool).

    Now the unzip portion: (to unzip the file you just created)

    As an alternative to the «e» argument, there is a x argument.

    Читайте также:  Не удаляется папка windows server
  • Оцените статью