Convert RAR, CAB, ISO, etc To ZIP

Recently I ran into a situation where I needed to convert some relatively obscure archive files (e.g. RAR) to the ZIP format. That’s easy enough if you only need to deal with a single file – just extract it using your favorite archiver and re-compress the extracted files as .zip.

However, manually converting dozens of files would take forever, not to mention how excrutiatingly tiresome it would be. So I wrote a Windows batch file that can convert any number of archives to ZIP using the open-source archiver 7-Zip. I’m posting the converter here in case anyone finds it useful.

Features

  • Converts (almost) any archive format to ZIP.
  • Supports wildcards.
  • You can set the output directory for the converted files. By default they’re created in the current directory.
  • Compatible with Windows XP and up.
  • Supported filetypes* : 7z, GZIP, BZIP2, TAR, ARJ, CAB, CHM, CPIO, DEB, DMG, HFS, ISO, LZH, LZMA, MSI, NSIS, RAR, RPM, UDF, WIM, XAR and Z.

* I didn’t actually test all of these formats, but most should work.

Download

zipconv.bat (2 KB)

Standard disclaimers apply. The software is provided as-is, don’t blame me if it kills your system, and so on. Also, don’t forget to download and install 7-Zip before using the batch file.

Usage

The converter should be run from the command line. If you’re not familiar with using the command prompt you can find some basic tutorials here.

General syntax
zipconv {input_filename} [output_directory]

The batch file takes up to two command line arguments. The first argument must be the name of the file to be converted. For example, this could be “oldarchive.arj” or “c:\backup\oldarchive.arj” if the file is not in the current directory. You can also use wildcards to convert multiple files in one go.

The second argument specifies the directory where to put the converted files. Setting it is optional – the converter will use the current directory by default. If you do set the output directory, don’t forget to include the final backslash in the directory name or the converter will make a mess.

Examples

  • Convert “somefile.rar” that is located in the current directory to “somefile.zip” :
    zipconv somefile.rar
  • Convert all CAB files from the current directory to ZIP :
    zipconv *.cab
  • Convert all RAR files to ZIP and put the converted files in a subdirectory “converted_files” (this directory wil be created if it doesn’t exist) :
    zipconv *.rar ".\converted_files\"

Good luck :)

Share :
  • Reddit
  • del.icio.us
  • Digg
  • StumbleUpon
  • DZone
  • Ping.fm
  • Sphinn
  • Twitter
Related posts :

7 Responses to “Convert RAR, CAB, ISO, etc To ZIP”

  1. 1
    ML says:

    Thank you so very much for this. It has saved me a considerable amount of time from a very tedious file by file conversion.

  2. 2
    bobby says:

    RAR is an OBSCURE archive format?

  3. 3
    White Shadow says:

    Okay, it depends on how tech-savvy you are :) I think the average user would find it rather obscure (and I have search stats – people looking for ways to open .rar files – to back it up).

  4. 4
    sandy says:

    how to convert rar file 2 vedio file

  5. 5
    White Shadow says:

    You don’t really need to “convert” it – a .rar file is an archive like .zip. So you need to extract the file. See this page for details : free rar extractors.

  6. 6
    ALMOST610 says:

    I dont know why people are complaining about the RAR format its great the only thing i want to do is find a quick way to convert it to ZIP for my friends who download files and dont have an RAR extractor i told them to download one but they wont so i convert them to ZIP and transfer it to them!!!!!

  7. 7
    sophia says:

    thanks for the converter…it helped a lot…:)

Leave a Reply