Questions tagged [winrar]

WinRAR is a trialware file archiver utility for Windows.

253 questions
50
votes
3 answers

How do I make a self extract and running installer

So currently my users download a zipfile, unzip it and then run setup.exe - I would like them to do this with one click. Using http://www.wikihow.com/Use-7Zip-to-Create-Self-Extracting-excutables i can make a self-extracting exe, but it doesn't…
Paul Taylor
  • 12,050
  • 34
  • 149
  • 295
43
votes
3 answers

use winrar command line to create zip archives

I'm using the following winrar command line to create zip archives: rar.exe a -df -ep -ag[yyyyMMddhhmmss] -ms[txt] C:\MyZipFile.zip C:\tmp\MyFiles*.txt The archives created are in RAR format instead of ZIP. Is there a way to create regular ZIP and…
Frangiskos
  • 586
  • 1
  • 4
  • 6
17
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
  • 1,829
  • 32
  • 58
17
votes
1 answer

WinRAR "Total path and file name length must not exceed 260 characters"

WinRAR is giving me the 260 character limit error on a path/filename that is only 216 characters long. See below. The reason is the extraction destination is a temporary folder that is tool long. See…
Xonatron
  • 14,362
  • 28
  • 65
  • 83
16
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
1 answer

Simply compress 1 folder in batch with WinRAR command line?

Using the WinRAR command line (C:\Program Files\WinRAR\rar.exe), all I'm trying to do is compress a single folder (C:\Users\%username%\desktop\someFolder) and possibly change the name of the .zip file created. I've tried just "rar.exe a…
Firedan1176
  • 601
  • 2
  • 8
  • 18
13
votes
1 answer

How do I make a self-installing executable using WinRAR?

I've seen executables that extract themselves and run a compressed setup.exe afterwards: a double click on the file uncompresses it and then runs the formerly compressed setup.exe. How can I accomplish this? I would like to use WinRAR, how can I…
user1207416
  • 131
  • 1
  • 1
  • 4
12
votes
3 answers

Excluding folders in Winrar

A Day with Winrar All I wanted to do was exclude folders and their contents using wildcards, and even after reading the docs, it turned into a guessing game... So my test bed looks…
Mark Robbins
  • 2,302
  • 2
  • 22
  • 32
11
votes
1 answer

How can I create an auto-executing, WinRar SFX file from a batch file?

I have a 3rd-party installer program that I would like for my users to be able to download and run as a pre-requisite to an application that I have written. The installer can take parameters that allows for a passive installation, where the user…
RLH
  • 13,948
  • 19
  • 85
  • 175
11
votes
1 answer

What compression format should we use; should we lay DEFLATE (.zip) to rest?

With most Linux distributions dropping gzip and bzip2 in favor of LZMA2 for compressing their packages, and many open source implementations for many platforms, I wonder: Shouldn't we lay DEFLATE and the .zip format (which unfortunately got…
polemon
  • 4,256
  • 2
  • 31
  • 45
10
votes
2 answers

How to create self-extracting RAR archive not showing anything on execution?

I am trying to create a self-extracting archive that extracts to "%USERPROFILE%\Desktop" with WinRar. However, when I run it, it extracts to the SFX's current directory, not my desktop. Does the path to extract option work at all? I'm using the…
magicbennie
  • 353
  • 3
  • 7
  • 20
9
votes
4 answers

Batch script to zip all the files without the parent folder

I wanted to create a batch file that can make a zip file from a folder that I put in the script. Here's my script: @REM ------- BEGIN xpi.bat ---------------- @setlocal @echo off set path="C:\Program Files\WinRAR\";%path% winrar.exe a -afzip -m5…
wahyueka31
  • 612
  • 2
  • 8
  • 16
9
votes
3 answers

How to crack AES-128 encryption used in WinRar?

I'm trying to crack winrar's password using some methods as explained below. Because rar uses AES-128 encryption, brute-force and dictionary attacks are useless as they would take years. But, if we convert a password-protected rar file into an SFX…
user1575903
8
votes
2 answers

How to extract a .rar archive with Ruby?

I need to unpack an .rar archive with Ruby. I could not find a gem though. I discovered the rar gem which only allows to create an archive. I stumpled about unrar which can be installed via gem 'unrar', git: 'git@github.com:aileron/unrar.git'. Here…
JJD
  • 44,755
  • 49
  • 183
  • 309
8
votes
4 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
  • 81
  • 1
  • 1
  • 2
1
2 3
16 17