locked
anybody know how to extract zip,rar files in windows using command line(cmd)??? RRS feed

  • Question

  • i have seen that the windows directly open the zip file if there is no software is installed for extract.i guess there will be some command should be there for extracting the zip file.
    Wednesday, September 18, 2013 4:24 PM

Answers

  • As Les52 says, there is no native command line support to extract zip files in Windows, although zip files are supported. But, note that rar files don't have native support in Windows - you need third party tools to open this file type.

    Balaji Kundalam

    • Marked as answer by Cloud_TS Sunday, September 29, 2013 7:00 AM
    Friday, September 27, 2013 5:51 AM
  • There's no Windows built in command line utility to unzip or unrar zip or rar files.

    But WinRAR has unrar.exe, a command line utility.

    There's also 7zip freeware that also allows command line operation.

    • Proposed as answer by Cloud_TS Thursday, September 19, 2013 12:01 PM
    • Marked as answer by Cloud_TS Sunday, September 29, 2013 7:00 AM
    Wednesday, September 18, 2013 7:21 PM

All replies

  • There's no Windows built in command line utility to unzip or unrar zip or rar files.

    But WinRAR has unrar.exe, a command line utility.

    There's also 7zip freeware that also allows command line operation.

    • Proposed as answer by Cloud_TS Thursday, September 19, 2013 12:01 PM
    • Marked as answer by Cloud_TS Sunday, September 29, 2013 7:00 AM
    Wednesday, September 18, 2013 7:21 PM
  • As Les52 says, there is no native command line support to extract zip files in Windows, although zip files are supported. But, note that rar files don't have native support in Windows - you need third party tools to open this file type.

    Balaji Kundalam

    • Marked as answer by Cloud_TS Sunday, September 29, 2013 7:00 AM
    Friday, September 27, 2013 5:51 AM
  • It's true that windows don't open rar directly and winRar soft is needed for that...After installing winrar once you can compress and decompress rar with command line and without having winrar installed...Just copy rar.exe(for compressing), rarext.dll, rarext64.dll(for 64 bit), unrar.exe(for decompressing) to your hard drive..

    Command lines..

    Compress: rar a -r folder.rar c:\folder

    rar>rar.exe
    a>add to archive

    -r>recurse subdirectory

    Decompress :unrar x c:\folder.rar c:\folder

    Thursday, January 2, 2014 4:34 AM
  • The native windows command to uncompress a zipped file, whether 3rd party or not, is "expand".

    IE: expand IpToCountry.csv.zip IpToCountry.csv

    Regards from the Mid-west USA

    Lance


    LMC

    Sunday, January 12, 2014 4:21 PM