RAR is a proprietary archive file format that supports data compression, error recovery, and file spanning.
Questions tagged [rar]
351 questions
8
votes
3 answers
RAR a folder without persisting the full path
1) I have a folder called CCBuilds containing couple of files in this path: E:\Testing\Builds\CCBuilds.
2) I have written C# code (Process.Start) to Rar this folder and save it in E:\Testing\Builds\CCBuilds.rar using the following…

Ramya
- 677
- 2
- 8
- 12
8
votes
1 answer
Compress a file with RAR
I have a text file that I want to compress after it gets an specified size. I've already seen GZipStream which works great, but RAR compression is much better.
I've been looking for a library that can compress a file with RAR (I really don't care…

gabriel290687
- 113
- 1
- 8
7
votes
1 answer
iOS Swift Download and Open Files Using URL
In my app I'm having files download open. Everything is done perfectly, But Problem is Files like zip,rar, tar files getting download but those files won't show up after completing download. Here is my tried code:
func DownloadDocumnt()
{
…

Kavin Kumar Arumugam
- 1,792
- 3
- 28
- 47
7
votes
7 answers
Read content of RAR file into memory in Python
I'm looking for a way to read specific files from a rar archive into memory. Specifically they are a collection of numbered image files (I'm writing a comic reader). While I can simply unrar these files and load them as needed (deleting them when…

Brent Taylor
- 867
- 1
- 9
- 12
6
votes
2 answers
Can Launch4J be set so that the exe files it creates cannot show its contents through zip/egg/rar file when right click on/ open with it?
Launch4J is a jar to exe converter. I used Launch4J to convert jar to exe but when I right click on that exe file Launch4J created, it shows the contents in the jar file (class, etc files) from which it was made from when I right click on that exe…

User7829300192
- 128
- 1
- 8
6
votes
3 answers
How to set path to unrar library in Python?
I am using Pycharm as my IDE (Python 3.7) and am trying to extract a password protected .rar file (I know the password) and have imported rarfile from unrar but am getting this error "LookupError: Couldn't find path to unrar library."
I also…

programmingflaw
- 63
- 2
- 5
6
votes
1 answer
Python rarfile package: fail to open files
So I was trying to archive a .rar file using rarfile library in Python, but it keeps saying "failed to open". Am using Mac OS X El Capitan, python 2.7. Any help would be appreciated, thanks.
Original code:
rf =…

user3451228
- 153
- 2
- 9
6
votes
2 answers
How to create a .rar file using python?
I want to create a .rar file by passing file paths of the files to be archived.
I have tried the rarfile package. But it doesn't have a 'w' option to write to the rarfile handler.
Is there any other way?

Mudits
- 1,513
- 3
- 20
- 37
6
votes
3 answers
Unpack rar archives in R
I need to unpack zip and rar archives, also that must be a multiplatform solution.
In R you can unpack zip easily by command
unzip(filename, exdir=‘’)
But I found I can’t unpack rar files that way.
On OS X I can simply open archive to unpack it, if…

randomsuffer
- 353
- 2
- 7
- 15
6
votes
2 answers
Ruby / rubyzip alternative capable of handling rar/tar/zip/7z?
I was wondering if anyone knows of rubyzip alternatives for Ruby, that can handle various formats in particular zip / rar / 7z?
I know of libarchive, but it's not complete for my purposes ( it's a good gem thou). (To clarify, libarchive - won't…

konung
- 6,908
- 6
- 54
- 79
6
votes
1 answer
Create a RAR archive for each subdirectory in a directory - Centos/Ubuntu
If using RAR on Ubuntu or Centos, this is the command for compressing a single folder (with subfolders inside), or is the command for compressing all folders inside a directory in a single archive:
rar a -m0 -r name.rar
where
-m0 is level of…

user332153
- 129
- 2
- 9
5
votes
2 answers
Decompress Rar file in Android
I want to learn how to decompress a .rar file in android. Zip files can be easily decompressed using ZipStream. Is there any similar way for rar files.

Rahul Verma
- 2,140
- 3
- 21
- 31
5
votes
0 answers
rarfile gives BadRarFile: Failed the read enough data error
I am trying to open a rar file and read csv from it. It gives the error in the title. I copied unrar.exe to Windows' Path, so passed that setup_tools issue, but now having this one.
I can open the rar file and see what is inside. Only problem is…

Acibiber53
- 51
- 5
5
votes
1 answer
Is there a solution to read the RAR files of version 5 using Junrar library?
I'm writing part of Java application responsible for reading archive files of different formats and preparing a preview mode.
Junrar library appeared to be the most reliable to work with RAR format, but it doesn't support the latest version 5 of…

Vladislav Ashikhin
- 288
- 5
- 15
5
votes
1 answer
header's structure of .7z files?
Looking up in net I could find a general overview of rar format structure.
http://www.rarlab.com/technote.htm
But what would I be glad to be informed is how 7z files are segmented block by block.
thanks.

Abdou Abdou
- 151
- 1
- 1
- 4