Winrar Command line

I need help understanding and using winrar command line. specifically the lock, copy, password, delete after rar, and the ieml command and anything else you would like to share with me. Thanks for any and all help!!!

sort by: active | newest | oldest
1-10 of 26Next »
spiker (author) 9 years ago
jon80 spiker8 years ago
I have a similar problem when trying to use the command line to compress some files:

rar at virtual_machines_bk.rar "J:\Backup\Elsueno\My Virtual M

The above does not work any idea why?

WinXP SP2 64 bit
NachoMahma9 years ago
. Got the list. Now I know why you are so confused - not the best docs I've seen.
. I don't have WinRAR installed, so I can't guarantee this will work. Try it and let me know what happens. If it works, we can move on to some of the other commands. If it doesn't work, you probably need to find someone else to help you.
  rar a -pMyPassword MyArchiveFile C:\data\*.*
a = add to archive command
-pMyPassword = set password to "MyPassword"
MyArchiveFile = name of target file (not sure if you need to include extension)
C:\data\*.* = files to be archived

  rar e -pMyPassword
Extracts all files in pswd protected archive to current dir
spiker (author)  NachoMahma9 years ago
Thanks, that has worked!! So what other commands can you help me with?
. I was afraid you were going to say that. :)
. Let's see ... you mentioned lock, email, and delete-after-RARing.
. To lock, use " -k' (sans quotes).
. To email, use "".
. And " -df" to delete
. So, if you wanted to RAR some files, lock the archive, e-mail it, and then delete the source files, it would be something like:
rar a -pMyPassword -k -df MyArchiveFile C:\data\*.*
. Those are some really crappy docs! Not bad if you're used to command line operations, but, as you've seen, almost worthless to someone new. Or did you send me the "cheat sheet" version?
spiker (author)  NachoMahma9 years ago
Well I tried it, the e-mailing failed, and the delete after "RAR-ing" failed. it locked it, and RARed it though. It said that i can't e-mail the RARed file but doesnt say anything about the delete after RARing. The command line i wrote is the following.... rar a -pOpenme -k -df Haikus G:\Haikus.txt All works excpet E-mailing, im off to google now.....:D
. It may exit when the e-mail fails. Try e-mailing to a valid address or try without the -ieml stuff. I've never used an archiver to e-mail anything. . . What does lock do? If the above doesn't help, I'd try it without the -k and see what happens. . . You might get better help on a forum that specializes in WinRAR. I'm having to make a lot of guesses.
spiker (author)  NachoMahma9 years ago
Switch -IEML[.][addr] - send archive by email

Attach an archive created or updated by the add command to email message. You need to have a MAPI compliant email client to use this switch (most modern email programs support MAPI interface).

You may enter a destination email address directly in the switch or leave it blank. In the latter case you will be asked for it by your email program. It is possible to specify several addresses separated by commas or semicolons.

If you append a dot character to -ieml, an archive will be deleted after it was successfully attached to an email.

If the switch is used when creating a multivolume archive, every volume is attached to a separate email message.

I found this Through google. heres the site
> heres the site . Much better . . Unless you have a specific need for lock, I wouldn't use it.
spiker (author)  NachoMahma9 years ago
Wheres the site? i dont see it lol
1-10 of 26Next »