RAR is a proprietary archive file format that supports data compression, error recovery, and file spanning.
Questions tagged [rar]
351 questions
187
votes
6 answers
.rar, .zip files MIME Type
I'm developing a simple php upload script, and users can upload only ZIP and RAR files.
What MIME types I should use to check $_FILES[x][type]? (a complete list please)

mrdaliri
- 7,148
- 22
- 73
- 107
38
votes
2 answers
How to programmatically extract / unzip a .7z (7-zip) file with R
I'm trying to automate the extraction of a number of files compressed with 7-zip. I need to automate this process, because a) there are many years of data I'd like to unlock and b) I'd like to share my code with others and prevent them from…

Anthony Damico
- 5,779
- 7
- 46
- 77
33
votes
7 answers
Python - mechanism to identify compressed file type and uncompress
A compressed file can be classified into below logical groups
a. The operating system which you are working on (*ix, Win) etc.
b. Different types of compression algorithm (i.e .zip,.Z,.bz2,.rar,.gzip). Atleast from a standard list of mostly used…

kumar_m_kiran
- 3,982
- 4
- 47
- 72
23
votes
7 answers
How to determine compression method of a ZIP/RAR file
I have a few zip and rar files that I'm working with, and I'm trying to analyze the properties of how each file was compressed (compression level, compression algorithm (e.g. deflate, LZMA, BZip2), dictionary size, word size, etc.), and I haven't…

Intenex
- 1,907
- 3
- 20
- 33
22
votes
3 answers
RAR archives with java
Is there a good java API for manipulating RAR archive files someone could recommend? Googling did not turn up anything overwhelmingly convincing.

user54579
- 4,588
- 4
- 23
- 19
21
votes
6 answers
Compressing a folder with many duplicated files
I have a pretty big folder (~10GB) that contains many duplicated files throughout it's directory tree. Many of these files are duplicated up 10 times. The duplicated files don't reside side by side, but within different sub-directories.
How can I…

user972014
- 3,296
- 6
- 49
- 89
19
votes
5 answers
Using java to extract .rar files
I am looking a ways to unzip .rar files using Java and where ever I search i keep ending up with the same tool - JavaUnRar. I have been looking into unzipping .rar files with this but all the ways i seem to find to do this are very long and awkward…

flexinIT
- 431
- 2
- 10
- 28
18
votes
6 answers
Is it possible to download just part of a ZIP archive (e.g. one file)?
Is there a way by which I can download only a part of a .rar or .zip file without downloading the whole file?
There is a ZIP file containing files A, B, C, and D.
I only need A. Can I somehow tweak the download to download only A or if possible…

user1026134
- 241
- 2
- 4
- 8
17
votes
4 answers
How to extract ZIP files with WinRAR command line?
While trying to extract zip files I get the error:
c:\path\name.zip is not RAR archive
No files to extract
My code is:
p.StartInfo.FileName = @"C:\Program Files\WinRAR\rar.exe";
p.StartInfo.Arguments = string.Format("x -o- {2} \"{0}\" *…
user34537
14
votes
5 answers
How to compress each subfolder in a folder into a separate RAR archive using WinRAR?
I am really new to batch file coding and need your help.
I've these…

adamzso
- 141
- 1
- 1
- 3
12
votes
2 answers
How to Rename Files and Folder in .rar .7z, .tar, .zip using C#
I have a compressed file .rar .7z, .tar and .zip and I want to rename physical file name available in above compressed archived using C#.
I have tried this using a sharpcompress library but I can't find such a feature for rename file or folder name…

Nikunj Satasiya
- 831
- 9
- 25
12
votes
1 answer
RAR decompression algorithm
I'm looking for the description of an algorithm that can be used to decompress RAR files. I don't need to create new archives, only decompress existing ones.
The Wotsit.org has the description of the RAR file format (version 2), but the description…

Vojislav Stojkovic
- 8,043
- 4
- 35
- 48
12
votes
7 answers
How to extract rar files inside google colab
I have a dataset in google drive which I want to use in google colab.But I can't unrar the rar files by any means.So far I have tried installing python libraries and also ubuntu packages like "unrar ,rar ,unrar-free ,unar ,unp" and I just can't open…

dhrumil barot
- 448
- 2
- 5
- 17
12
votes
1 answer
Unrar archive with folders in Debian?
I have the task: I have the Windows-made rar-archive (folders, files in it and so on), that via FTP was copied to Linux server.
I want to unrar this archive to keep the file structure as it was in Windows - with folder.
rar у my_archivive
works,…

Eugene Shmorgun
- 2,083
- 12
- 42
- 67
12
votes
6 answers
Read content of RAR files using C#
Is there any way to read the content of a RAR file (support for multi-file RAR is a must)?
I don't want to extract the content to the disk, just read it like a stream.

Peter
- 37,042
- 39
- 142
- 198