tags:

views:

5891

answers:

7

Probably not possible to unzip files natively with dos...so what other ways can i unzip files through the command line? Preferably using open source/free tools

Thanks

A: 

A quick Google search turned up this. That works in windows (it's not clear whether you mean that you're using Windows, or the OS is actually DOS).

Jeremy
A: 

EDIT: I am an idiot. I meant Info-Zip, but wrote and linked to gnu zip. Sorry. :(

carlpett
gzip is not zip - mainly used to compress tar files.
gimel
+3  A: 

Grab an executable from info-zip.

Info-ZIP supports hardware from microcomputers all the way up to Cray supercomputers, running on almost all versions of Unix, VMS, OS/2, Windows 9x/NT/etc. (a.k.a. Win32), Windows 3.x, Windows CE, MS-DOS, AmigaDOS, Atari TOS, Acorn RISC OS, BeOS, Mac OS, SMS/QDOS, MVS and OS/390 OE, VM/CMS, FlexOS, Tandem NSK and Human68K (Japanese). There is also some (old) support for LynxOS, TOPS-20, AOS/VS and Novell NLMs. Shared libraries (DLLs) are available for Unix, OS/2, Win32 and Win16, and graphical interfaces are available for Win32, Win16, WinCE and Mac OS.

gimel
+3  A: 

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

ninesided
A: 

Originally ZIP files were created with MS-DOS command line software from PKWare, the two programs were PKZIP.EXE and PKUNZIP.EXE. I think you can still download PKUNZIP at the PKWare site here:

http://www.pkware.com/software-pkzip/dos-compression

The actual command line could look something like this:

C:>pkunzip c:\myzipfile.zip c:\extracttothisfolder\

Michiel
+8  A: 

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

jar xf test.zip

or if not in your path:

C:\Java\jdk1.6.0_03\bin>jar xf test.zip

Complete set of options for the jar tool available here.

Examples:

Extract jar file
    jar x[v]f jarfile [inputfiles] [-Joption] 
    jar x[v] [inputfiles] [-Joption]
Brian