31868Views26Replies

Author Options:

Winrar Command line Answered

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!!!

Discussions

0
None
spiker

10 years ago

STILL NEED HELP PEOPLE

0
None
jon80spiker

Reply 9 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
achines\*.*"

The above does not work any idea why?

WinXP SP2 64 bit

0
None
NachoMahma

10 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.
.
Password
  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
0
None
spikerNachoMahma

Reply 10 years ago

Thanks, that has worked!! So what other commands can you help me with?

0
None
NachoMahmaspiker

Reply 10 years ago

. 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 " -iemlNacho@Mahma.com".
. 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 -iemlNacho@Mahma.com -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?
0
None
spikerNachoMahma

Reply 10 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 -iemlNacho@Mahma.com -df Haikus G:\Haikus.txt All works excpet E-mailing, im off to google now.....:D

0
None
NachoMahmaspiker

Reply 10 years ago

. 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.

0
None
spikerNachoMahma

Reply 10 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

http://acritum.com/winrar/manual/index.html

0
None
NachoMahmaspiker

Reply 10 years ago

> heres the site . Much better . . Unless you have a specific need for lock, I wouldn't use it.

0
None
spikerNachoMahma

Reply 10 years ago

Wheres the site? i dont see it lol

0
None
spikerNachoMahma

Reply 10 years ago

yea i like them, so what you you think the problem is with the emailing command?

0
None
spikerNachoMahma

Reply 10 years ago

well i looked at that site, not much help to me for emailing. So i dont know what to do now.

0
None
NachoMahmaspiker

Reply 10 years ago

. I'd try posting on a different site. I've told you all I know and no one else is speaking up.

0
None
spikerNachoMahma

Reply 10 years ago

yea just me and you.....guess we're the only ones that care lol, or care to know. thanks for your help. i think i would just have to buy the liences and it could work, lol but i have onw more thing to try out...so i will get back to ya on this last try, lol

0
None
NachoMahmaspiker

Reply 10 years ago

. BTW, I ran across that page when I Googled it, but didn't figure out how to use the interface until the second look. I kept clicking on the titles, not the folders. Doh!

0
None
spikerspiker

Reply 10 years ago

and taking the -k switch doesn't help (im using my email)

0
None
spikerNachoMahma

Reply 10 years ago

well that was the output from when you type "rar help" in command line, i will try that command line you gave me later on, thanks i willl get back to ya later!!!

0
None
11010010110

10 years ago

Many apps display help when run in commandline like this winrar -h winrar /h winrar /?

0
None
NachoMahma11010010110

Reply 10 years ago

. If you don't understand the help info, post the generic command and we should be able to 'splain it to ya.

0
None
spikerNachoMahma

Reply 10 years ago

OK, The password command, lock command, email command, delete after RARing command. Can you guys give me examples?

0
None
NachoMahmaspiker

Reply 10 years ago

. I can't find a list of commands anywhere! Apparently there is some kind of documentation file that comes with WinRAR, but I couldn't find an online copy. I'd switch to something with better docs, eg, 7-zip.

0
None
NachoMahmaspiker

Reply 10 years ago

. Yep. 7-zip has a CLI and e-mail. I've never used the e-mail option, so I can't say how well it works. . . That's what I had in mind when I asked you to "post the generic command and we should be able to 'splain it to ya." . If it's a long list, PM it to me. If it's a real long list, I'll give you an e-mail addy to send it to.

0
None
spikerNachoMahma

Reply 10 years ago

also, does 7zip have command line zipping and emailing ability?