Does Windows 7 come with a native uncompress (unzip) command-line tool?

Answered Does Windows 7 come with a native uncompress (unzip) command-line tool?

  • Saturday, April 10, 2010 8:01 PM
     
     

    Hi

    Does Windows 7 come with a native uncompress (unzip) tool that can be run from the command-line?

    I am looking for native uncompress solution so that users do not have to either provide a third-party Unzip tool or for me having to create a self-extraction file.


    Thanks
    Jeff in Seattle

All Replies

  • Saturday, April 10, 2010 10:18 PM
     
     
    I'm not aware of a command line option to unzip files. The normal way would be to right-click on the compressed file (note: only *.zip format is supported) and select "extract all", following the instructions then. If you want more flexibility, you must use 7zip or something like that (WinRAR, f.e.). The native solution is somewhat restricted, probably by licensing issues.
    "I think there is a world market for maybe five computers.” (Thomas J. Watson, Sr.)
  • Monday, April 12, 2010 8:25 AM
     
     Answered

    Hi,

    According to my search, if you want to unzip file using command line, additional software maybe needed. Here are more information:

    http://stahlworks.com/dev/index.php?tool=zipunzip

    http://www.memecode.com/docs/winzip.html

    Hope it helps.


    Vivian Xing - MSFT
    • Marked As Answer by Vivian Xing Thursday, April 22, 2010 8:29 AM
    •  
  • Tuesday, June 14, 2011 2:35 PM
     
     

      The stahlwordk unzip seems to be built for 1999 zip files and doesn't work with a zip file I just created with windows 7, do you have a pointer to a working tool?

  • Tuesday, June 14, 2011 3:42 PM
     
     

    There's a way to unzip with explorer in vbscript, but I've just started using 7-zip:

    http://www.7-zip.org

    Keep 7z.exe and 7z.dll together.

     

     

  • Monday, August 22, 2011 10:24 AM
     
     

    There's a way to unzip with explorer in vbscript, but I've just started using 7-zip:

    http://www.7-zip.org

    Keep 7z.exe and 7z.dll together.

     

     


    Well...what is the command?  You only told half the story.  And doing 7z.exe just says invalid command line.
    Find this post helpful? Does this post answer your question? Be sure to mark it appropriately to help others find answers to their searches.
  • Tuesday, August 23, 2011 1:15 PM
     
      Has Code

    OK so an update, on the 7-zip download page (http://7-zip.org/download.html) they have a specific command line version (http://downloads.sourceforge.net/sevenzip/7za920.zip).  It does not even contain a 7z.dll so I presume the poster above was jerry rigging the normal install version.  The zip file contains 7za.exe and 7-zip.chm.  The help files seems broken to me so I found the switches online, but I only could find them on a japanese website, but it is english:

    Syntax:  http://sevenzip.sourceforge.jp/chm/cmdline/syntax.htm 
    commands:  http://sevenzip.sourceforge.jp/chm/cmdline/commands/index.htm
    Extract with full paths:  http://sevenzip.sourceforge.jp/chm/cmdline/commands/extract_full.htm

    From the site:

    Examples

    7za.exe x archive.zip
    

     

    extracts all files from the archive archive.zip to the current directory.

    7za.exe x archive.zip -oc:\soft *.cpp -r
    

     

    extracts all *.cpp files from the archive archive.zip to c:\soft folder.


    Find this post helpful? Does this post answer your question? Be sure to mark it appropriately to help others find answers to their searches.
    • Edited by Chase Roth Tuesday, August 23, 2011 1:16 PM updated command file name to match
    •  
  • Monday, August 29, 2011 4:59 PM
     
     Proposed

    go here:

    http://www.info-zip.org/

    download the unzip.exe

    store it wherever you like, i put mine in the program files folder, but anywhere is fine

    add its path to your enviroment variables 

    then you can cd to your zipfile in command line and type "unzip yourzipfile.zip"

    it will unzip in the current directory.

    and it's free.

     

    • Proposed As Answer by pigpig77 Monday, August 29, 2011 5:03 PM
    •  
  • Tuesday, December 04, 2012 10:12 PM
     
     

    did you ever get a way to do with natively with windows.  I have the same issue only it's not windows 7 it is windows 2003 server.   I DO NOT have permission to install any kind of unzip utility on this server but I have an automated process that needs to unzip a file on a regular basis and the paperwork process to get permission to install winzip or other utility that can be called from command line will take weeks- if such a feature exists built in it would make a world of difference.

    anyone know what command might possibly work to use the windows explorer extract feature via command line???? 

  • Wednesday, December 05, 2012 1:00 PM
     
     

    I did not.  However, I am using the 7za.exe available from 7-zip.  It is just an executable and does not need to be installed, so maybe that will get you around your software installation issues.  http://www.7-zip.org/download.html  I believe it is the command line version named "7-Zip Command Line Version".

    I use it and there is nothing installed.  Hope it helps.


    Find this post helpful? Does this post answer your question? Be sure to mark it appropriately to help others find answers to their searches.

  • Wednesday, February 27, 2013 5:43 PM
     
     

    If you have JAVA installed on the machine you are working on, you can try this --

    "%java_home%\bin\jar" xf name_of_file.zip

    where %java_home% is the install location for the jdk . eg : C:\Program Files\Java\jdk1.6.0_18

    Just remember that it doesn't create a folder/directory under which it unzips the files. It just dumps all the extracted files in your present working directory.