Questions tagged [winrar]

WinRAR is a trialware file archiver utility for Windows.

257 questions
3
votes
2 answers

Check rar or zip for password protection by command line

I make scripts with Autohotkey. One of my hotkeys will check all selected zips or rars and should detect which of them are password protected, so as to isolated or rename them. Is there any command line with Winrar or with any other tool that can…
Elaphe
  • 31
  • 1
  • 2
3
votes
2 answers

Activate winrar from CMD in silent mode

I'm working with matlab and call CMD to run winrar in order to extract files. I want to do the extracting process in silent mode - means to not see the popup reporting on the progress (image attached). Any ideas? I have tried to use -s or /s…
erez
  • 399
  • 1
  • 6
  • 17
3
votes
2 answers

How to get WinRar SFX to launch a bat file after extraction

So I need to get the SFX to extract to the location and then automatically launch the bat file from the folder it's just extracted to. Hope someone can help. Thanks, Tom
OfficiallyFrex
  • 33
  • 1
  • 1
  • 3
3
votes
1 answer

How to unpack all rar archives in all subfolders of a folder and then delete the archives?

I want to unpack all files in some subfolders which are in a main folder, delete the xxx.rar files after unpacking and move the folder with the files to another location. Main Folder Sub Folder1 (with .rar files) Sub Folder2 (with .rar files) Sub…
BASF
  • 147
  • 1
  • 3
  • 17
3
votes
2 answers

How to rar/unrar with command line parameters

I've looked through the internet on how winrar's command line parameters work, and this is what I have so far void LOCK(string fld, string pw) { Process p = new Process(); p.StartInfo.FileName = @"C:\Program…
Elmub
  • 141
  • 1
  • 2
  • 11
3
votes
1 answer

How to make correct docx after working with it as zip archive?

I need to open docx file as zip archive, find text from word/document.xml, than replace some strings and put it's back to docx. The problem that after this manipulation Word is claim that it's incorrect docx, but if I push "try to recover document"…
Dmitry Bubnenkov
  • 9,415
  • 19
  • 85
  • 145
3
votes
2 answers

How to archive each folder in a directory separately using WinRAR?

I am trying to use WinRAR to compress all my different folders individually. Example of folder content before c:\projects\test c:\projects\country c:\projects\db and after running the batch…
Jessie
  • 45
  • 2
  • 6
3
votes
2 answers

Extract archive using winrar.exe in C# and detect if any error occurred

I want to write an extractor app to extract a lot of archived files (*.tgz and *.rar) using C#. I can't find any universal component which support all of this archived file formats. For this reason, I'm trying to use WinRAR.exe. But in this case I…
Kamran
  • 387
  • 1
  • 3
  • 19
3
votes
1 answer

How to archive files older than 7 days with creating one archive for all files with same date?

I am looking for someone who can help me make a scheduled task to automatically move log files into RAR archives. It does not have to be a batch file solution, if you have other ideas please share. I got the basic code for it. This is the batch file…
Metal Mike
  • 89
  • 4
  • 13
3
votes
1 answer

Winrar CommandLine & Powershell : Exclude Full Directory Path Structure

Suppose I have a directory structure like C:\Users\Desktop\abc\d I want to rar archive the abc folder so that the structure of rar is: abc\d When I try using powershell to archive, winrar replicates the full path inside the archive,…
3
votes
2 answers

winrar compress folders using batch

In a folder, I have some folders. I want to compress all the folders separately to the foldername.rar and delete the original files. I want to perform this function in batch. I tried the ones given in other answers but they only compress the files…
user3052799
  • 31
  • 1
  • 1
  • 3
3
votes
2 answers

get a list of files with winrar command line

I want to get a list of files and preferably uncompressed file size via winrar command line. How do i do this? and how do i do this with a password? From the doc it looks like i use -pPASSWORD
user34537
3
votes
6 answers

Excluding .svn directories with WinRar

I have a PowerShell script I use for creating distributions that copies compiled files from a few places and zips them up with winrar. In the script, I change to a directory containing the folders I want to run and execute this: Invoke-Expression…
Echilon
  • 10,064
  • 33
  • 131
  • 217
3
votes
2 answers

How can I identify a WinRAR SFX using a binary signature of some sort?

I'm looking for an answer similar to the one in this question, but for WinRAR instead of 7zip. Essentially I want an authoritative signature that I can say at least "All WinRAR generated self-extracting executables created with the Default SFX file…
Rollie
  • 4,391
  • 3
  • 33
  • 55
3
votes
4 answers

extract ISO with winrar automatically with c# or batch

I'm trying to extract an ISO to a folder with the same name without .iso on the end. I'm having a problem with winrar as it will not start the extract when I start up with the seach starting in the folder with the ISO. UPDATED with answer…
ELSheepO
  • 305
  • 3
  • 9
  • 26
1 2
3
17 18