help with batch file using WINRAR please

Posted by Jessie on Stack Overflow See other posts from Stack Overflow or by Jessie
Published on 2010-06-02T02:22:32Z Indexed on 2010/06/02 2:33 UTC
Read the original article Hit count: 239

Filed under:
|

i need help with batch file for WINRAR pleasee hi i am trying to use winrar to convert all my different folders individually from one location to another.

example:

c:\projects\test c:\projects\country c:\projects\db

to

c:\backup\test.rar c:\backup\country.rar c:\backup\db.rar

I am trying the following cmd, which works but what it does is that it gets all the folders in the projects folder into the backup

for /f "delims==" %%D in ('DIR C:\projects /A /B /S') do ( "C:\Program Files\WinRAR\WinRAR.EXE" m -r "c:\backup\projects.rar" "%%D" )

but this is what it does

c:\backup\project.rar (it does contain all the files if i extract) i want them separetely

can you please help?

© Stack Overflow or respective owner

Related posts about batch

Related posts about winrar