vote up 1 vote down star

Hi,

I looked for the answers in the list and did not find any matching. Can any body please,m let me know that what is the command that can be used to zip a file using winrar in the command line and move it to a particular folder. Please, let me know.

Thanks for all your helps.

soofi

flag
7-zip ref: superuser.com/questions/5886/… – nik Nov 1 at 3:58

migrated from stackoverflow.com

2 Answers

vote up 1 vote down

WinRAR cannot be used from the command line, use RAR instead.

rar.exe (unlike WinRAR) cannot be used to create a zip archive.

for all possible RAR commands and switches refer to help (rar /?)

but here's how to use zip and unzip on the windows command line.

link|flag
1  
As an alternative you can use 7-zip which, on the command line, can be used to create ZIP archives. As well as Rar, 7z, etc. – Johannes Rössel Nov 1 at 1:40
+1 for the link to zip.exe and unzip.exe (those Infozip versions need our support). – pavium Nov 1 at 5:54
vote up 0 vote down

Though I found no documentation for it, I did manage to use winrar from the command line. I used the following syntax:

winrar a archiveName file1 file2 ....

to create an archive, and

winrar x archiveName

to extract the files from it in the current directory.

link|flag
yes, you can use winrar.exe from the command line with most but not ALL switches and options available to rar.exe – Molly Dec 15 at 17:43

Your Answer

Get an OpenID
or
never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.