How to in Console RAR...

Status
Not open for further replies.

Cojba

Active Member
704
2010
23
0
Well, I need to use Console RAR to make something done, but I have troubles with understanding commands.

When I navigate to the specific folder, and run this command:

rar a -v362 test.rar

RAR will take all the files from that folder and add them into test.rar(splitted in desired parts).

Is there a command that can be used for raring all files from the folder separately ?

Sample:

test folder contains text1.txt and text2.txt. I need to make text1.rar and text2.rar.

Thank you.
 
8 comments
@buck_rider - where and when exactly should I input this ?

when I add winrar tools and then navigate to the desired folder, and then call your command, I'm getting:

i was unexpected at this time

thank you
 
Code:
for /D %%i in (*) Do C:\\Programs\\Winrar\\rar.exe a -m0 -v362m \"%%i.rar\" \"%%i\"
Try that, might have to change the path. Works on Win XP, no idea about Vista/Win7.

The other command was for linux, didn't expect you wanted it for windows.
 
hmmm... it seems like I'm real noob with cmd :facepalm:

d:\source> for /D (*) Do C:\Documents and Settings\Administrator\Desktop\rar\rar32.exe a -m0 -v362m \"%%i.rar\" \"%%i\"

This is what I tried now, and I'm getting error "in was unexpected at this time".

I'm using win xp, d:\source is my folder with files need to be rared, and you can see my path for rar.exe. Can you see where I'm wrong ?

Sorry if I bother you :)
 
Code:
d:\source> for /D (*) Do "C:\Documents and Settings\Administrator\Desktop\rar\rar32.exe" a -m0 -v362m \"%%i.rar\" \"%%i\"
Try it that way, if that doesn't work I am out of ideas.
Haven't used a win box in ages, so I can't even test anything. Should be enough people around who are able to help.
 
Status
Not open for further replies.
Back
Top